From 96c6290efd54e9803cb88fbe8e3ab8800d622a3e Mon Sep 17 00:00:00 2001 From: Eero Ruohola Date: Sat, 19 Feb 2022 20:44:50 +0200 Subject: [PATCH] Test against multiple operating systems in CI pipeline Now that we have operating system resource accessing functionality, we really want to test against all the major operating systems. --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b00a7b..e4696f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,8 +93,9 @@ jobs: fail-fast: true matrix: python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - name: "Checkout code" uses: actions/checkout@v2 @@ -136,7 +137,7 @@ jobs: pytest --verbose --cov=. --cov-report=xml . - name: "Upload coverage" - if: matrix.python-version == '3.7' + if: matrix.python-version == '3.7' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 with: files: coverage.xml