From 4aba53eabfb9b4c6b94d15dd6804ed927a43fa4b Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Thu, 8 Aug 2024 09:25:57 -0700 Subject: [PATCH] Update CI workflow --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5272d05e..d419cd08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: