From 85422d8a066e305a96636cf5bf7f1bfdaea37abf Mon Sep 17 00:00:00 2001 From: mvogt Date: Tue, 25 Jun 2024 10:30:25 +0200 Subject: [PATCH] added coverage for generating more reports. --- .github/workflows/run_tests_master.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_tests_master.yml b/.github/workflows/run_tests_master.yml index 08ed959f..277af186 100644 --- a/.github/workflows/run_tests_master.yml +++ b/.github/workflows/run_tests_master.yml @@ -43,17 +43,18 @@ jobs: if: ${{ matrix.python-version == '3.11' }} run: | python -m pip install numba - python -m pytest - - name: Test with pytest and Codecov + python -m pytest -n=auto + - name: Test with pytest, Codecov and Coverage if: ${{ matrix.python-version == '3.9' }} run: | - python -m pip install pytest-cov - python -m pytest --cov=./ --cov-report=xml + python -m pip install pytest-cov coverage + coverage run -m pytest --nbmake -n=auto --cov=./ --cov-report=xml - name: Upload coverage to Codacy if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'}} env: CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} - run: bash <(curl -Ls https://coverage.codacy.com/get.sh) + run: | + bash <(curl -Ls https://coverage.codacy.com/get.sh) - name: Upload coverage to Codecov if: ${{ matrix.python-version == '3.9' }} uses: codecov/codecov-action@v4