Skip to content

Commit 6f5ed30

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

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/build_and_test.yml

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

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)