Skip to content

Commit

Permalink
Change runner based on Python version.
Browse files Browse the repository at this point in the history
The macos-latest runner, 14 arm64, does not have Python 3.7 available
because it is no longer supported. Run testing for Python 3.7 on older
macos-13.
  • Loading branch information
zivy committed May 1, 2024
1 parent 08c6551 commit fc6f9fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, "3.10"]
exclude: # macos-latest, 14, does not have Python 3.7, so workaround for now
- python-version: "3.7"
os: macos-latest
include: # Run Python 3.7 on older macos
- python-version: "3.7"
os: macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -74,8 +80,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
#problems with package hashes when using new pip python -m pip install --upgrade pip
#python -m pip install pip==23.3.2
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Test with pytest
run: |
Expand Down

0 comments on commit fc6f9fa

Please sign in to comment.