From ef619b9fea227a70387f1c97828cc21617c1ea2d Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Wed, 10 Jan 2024 18:38:53 +0100 Subject: [PATCH] [build] Run tests on Windows. The use of temporary files for injecting fixtures into packages shows platform-specific behavior. As a result, it makes sense to run the tests on Windows as well, at least as long as the virtual module workaround is in place. Signed-off-by: Michael Seifert --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6aeaaa83..972620a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,11 +56,12 @@ jobs: path: dist test: - name: Python ${{ matrix.python-version }} - runs-on: ubuntu-latest + name: ${{ matrix.os }} - Python ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, windows-latest] python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: @@ -75,7 +76,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - set -xe python -VV python -m site python -m pip install --upgrade pip @@ -85,6 +85,7 @@ jobs: - name: Store coverage data uses: actions/upload-artifact@v3 + if: "!endsWith(matrix.os, 'windows')" with: name: coverage-per-interpreter path: .coverage.*