Skip to content

Commit

Permalink
Merge pull request #52 from psf/fix_ci
Browse files Browse the repository at this point in the history
Fix CI test runner
  • Loading branch information
nateprewitt authored Aug 8, 2024
2 parents 44783bf + 4aba53e commit 94fe7e5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
os: [ubuntu-22.04, macOS-latest, windows-latest]
# Python 3.8 and 3.9 do not run on macOS-latest which
# is now using arm64 hardware.
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
exclude:
- { python-version: "3.8", os: "macos-latest" }
- { python-version: "3.9", os: "macos-latest" }
include:
- { python-version: "3.8", os: "macos-13" }
- { python-version: "3.9", os: "macos-13" }

steps:
- uses: actions/checkout@v3
Expand All @@ -36,10 +45,10 @@ jobs:
run: |
python -m pip install pip-tools
pip-compile --quiet --generate-hashes --extra mainapp > requirements.txt
python -m pip install --requirement requirements.txt
python -m pip install .[test]
python -m pip install --use-pep517 --requirement requirements.txt
python -m pip install --use-pep517 .[test]
- name: Run tests
run: tox
run: python -m pytest tests
- name: Store tested requirements.txt file as artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 94fe7e5

Please sign in to comment.