From e6b88b8046d454d214d94a56a92bf504a30a4920 Mon Sep 17 00:00:00 2001 From: vivekbhr Date: Sun, 25 Feb 2024 14:40:57 +0100 Subject: [PATCH] run pytest only on ubuntu --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 53a24d3..16cb82e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,11 +44,13 @@ jobs: which sincei sincei --help - name: Generate coverage report - run: | - pip install pytest - pip install pytest-cov - pytest --cov=./ + if: matrix.os == 'ubuntu-latest' + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./ - name: Upload coverage to Codecov + if: matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }}