diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47da777..317f281 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,12 +9,15 @@ on: jobs: tests: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} strategy: fail-fast: false matrix: + os: + - ubuntu-latest + - windows-latest python-version: - "3.8" - "3.9" @@ -24,6 +27,9 @@ jobs: - "3.13" - "3.14" - "pypy-3.9" + exclude: + - os: windows-latest + python-version: "pypy-3.9" steps: - name: Check out repository uses: actions/checkout@v4 @@ -34,6 +40,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install system dependencies + if: runner.os == 'Linux' run: | sudo apt-get update sudo apt-get install -y zip p7zip-full @@ -41,7 +48,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install . pytest pytest-cov + python -m pip install . pytest pytest-cov - name: Run tests run: pytest -vv --cov=jsonstore --cov-report=xml --junitxml=test-results.xml