Skip to content

Commit d15859e

Browse files
committed
Try python 3.8 too.
1 parent 2d5b1ba commit d15859e

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

.github/workflows/build_and_test.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
python -m unittest discover -v -s tests -p '*.py'
7676
shell: bash
7777

78-
python_wheels:
78+
build_bin_wheels:
7979
needs: build_and_test_python
8080
runs-on: ubuntu-latest
8181
permissions:
@@ -90,7 +90,9 @@ jobs:
9090
strategy:
9191
fail-fast: false
9292
matrix:
93-
python-version: ['3.9', '3.11', '3.12']
93+
python-version: ['3.8', '3.9', '3.11', '3.12']
94+
outputs:
95+
dist-artifact-name: dist-${{ env.PY_VER }}
9496
steps:
9597
- name: Set up Python ${{ env.PY_VER }}
9698
uses: actions/setup-python@v5
@@ -148,6 +150,45 @@ jobs:
148150
mv `find dist_out -type f -name \*.whl` dist
149151
rm -r dist_out
150152
153+
- name: Upload built wheels
154+
uses: actions/upload-artifact@v4
155+
with:
156+
name: dist-${{ env.PY_VER }}
157+
path: dist
158+
159+
publish_pypi:
160+
needs: build_bin_wheels
161+
runs-on: ubuntu-latest
162+
environment:
163+
name: pypi
164+
url: https://pypi.org/p/asyncproxy
165+
permissions:
166+
id-token: write
167+
actions: read
168+
contents: read
169+
steps:
170+
- uses: actions/checkout@v4
171+
172+
- name: Download all wheel artifacts
173+
uses: actions/download-artifact@v4
174+
with:
175+
path: dist
176+
pattern: dist-*
177+
merge-multiple: true
178+
179+
- name: Set up Python
180+
uses: actions/setup-python@v5
181+
with:
182+
python-version: '3.x'
183+
184+
- name: Install dependencies
185+
run: |
186+
python -m pip install --upgrade pip
187+
pip install --upgrade build setuptools wheel
188+
189+
- name: build
190+
run: python setup.py build sdist
191+
151192
- name: Show context tree
152193
run: ls -R dist
153194

scripts/build/install_depends_yum.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
if [ "${PY_VER}" = "3.9" ]
5+
if [ "${PY_VER}" = "3.9" -o "${PY_VER}" = "3.8" ]
66
then
77
PY_VER="3${PY_VER#3.}"
88
dnf module enable python${PY_VER} -y

0 commit comments

Comments
 (0)