Fix testing on Windows with GH Actions

This commit is contained in:
grossmj 2024-10-19 16:12:06 +10:00
parent 42808161bf
commit e62ffb1b87
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

View File

@ -20,8 +20,15 @@ jobs:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
- os: windows-latest # only test with Python 3.10 on Windows
python-version: ["3.8", "3.9", "3.11", "3.12"]
# only test with Python 3.10 on Windows
- os: windows-latest
python-version: "3.8"
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v4
@ -32,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
python -m pip install -r dev-requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names