Skip to content

Commit 94fe7e5

Browse files
authored
Merge pull request #52 from psf/fix_ci
Fix CI test runner
2 parents 44783bf + 4aba53e commit 94fe7e5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
11+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
1212
os: [ubuntu-22.04, macOS-latest, windows-latest]
13+
# Python 3.8 and 3.9 do not run on macOS-latest which
14+
# is now using arm64 hardware.
15+
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
16+
exclude:
17+
- { python-version: "3.8", os: "macos-latest" }
18+
- { python-version: "3.9", os: "macos-latest" }
19+
include:
20+
- { python-version: "3.8", os: "macos-13" }
21+
- { python-version: "3.9", os: "macos-13" }
1322

1423
steps:
1524
- uses: actions/checkout@v3
@@ -36,10 +45,10 @@ jobs:
3645
run: |
3746
python -m pip install pip-tools
3847
pip-compile --quiet --generate-hashes --extra mainapp > requirements.txt
39-
python -m pip install --requirement requirements.txt
40-
python -m pip install .[test]
48+
python -m pip install --use-pep517 --requirement requirements.txt
49+
python -m pip install --use-pep517 .[test]
4150
- name: Run tests
42-
run: tox
51+
run: python -m pytest tests
4352
- name: Store tested requirements.txt file as artifact
4453
uses: actions/upload-artifact@v3
4554
with:

0 commit comments

Comments
 (0)