From e62ffb1b87aea27530d5f88d14c8ff879029816b Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 19 Oct 2024 16:12:06 +1000 Subject: [PATCH] Fix testing on Windows with GH Actions --- .github/workflows/testing.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2795e9c0..9d9013d3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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