Skip to content

Commit 43d1eaa

Browse files
ci: Fix workflow failure caused by missing Python 3.7 in the latest macOS runner. (#42)
Co-authored-by: kirkrodrigues <[email protected]>
1 parent 6d355d3 commit 43d1eaa

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/package.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
path: dist/*
3939
retention-days: 1
4040

41-
test:
41+
test-python37:
4242
needs: [build]
4343
strategy:
4444
matrix:
45-
os: [macos-latest, ubuntu-latest]
46-
python-version: ["3.7", "3.8", "3.11"]
45+
os: [macos-13, ubuntu-latest]
46+
python-version: ["3.7"]
4747
runs-on: ${{ matrix.os }}
4848
steps:
4949
- uses: actions/checkout@v3
@@ -53,14 +53,34 @@ jobs:
5353
python-version: ${{ matrix.python-version }}
5454

5555
- name: Download wheels for Python3.7
56-
if: ${{ '3.7' == matrix.python-version }}
5756
uses: actions/download-artifact@v3
5857
with:
58+
# Since we don't build for Python 3.7, we download the Python 3.8 wheel instead.
5959
name: wheel-3.8
6060
path: dist/
6161

62+
- run: pip install --upgrade
63+
pip
64+
dist/clp_logging-*.whl
65+
-r requirements-test.txt
66+
67+
- run: python -m unittest -fv
68+
69+
test:
70+
needs: [build]
71+
strategy:
72+
matrix:
73+
os: [macos-latest, ubuntu-latest]
74+
python-version: ["3.8", "3.11"]
75+
runs-on: ${{ matrix.os }}
76+
steps:
77+
- uses: actions/checkout@v3
78+
79+
- uses: actions/setup-python@v4
80+
with:
81+
python-version: ${{ matrix.python-version }}
82+
6283
- name: Download wheels for Built Python Versions
63-
if: ${{ '3.7' != matrix.python-version }}
6484
uses: actions/download-artifact@v3
6585
with:
6686
name: wheel-${{ matrix.python-version }}

0 commit comments

Comments
 (0)