Skip to content

Commit f25b8d0

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

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/build_and_test.yml

Lines changed: 37 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,39 @@ 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+
steps:
168+
- name: Download all wheel artifacts
169+
uses: actions/download-artifact@v3
170+
with:
171+
path: dist
172+
173+
- name: Set up Python
174+
uses: actions/setup-python@v5
175+
with:
176+
python-version: '3.x'
177+
178+
- name: Install dependencies
179+
run: |
180+
python -m pip install --upgrade pip
181+
pip install --upgrade build setuptools wheel
182+
183+
- name: build
184+
run: python setup.py build sdist
185+
151186
- name: Show context tree
152187
run: ls -R dist
153188

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)