diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 9f6ad4fc..00000000 --- a/.codecov.yml +++ /dev/null @@ -1,12 +0,0 @@ -# Codecov configuration file - -comment: false - -coverage: - range: 0..100 # sets the range for the color bar in the dashboard - round: down - precision: 2 - -ignore: - - "setup.py" - - "tests/" diff --git a/.github/workflows/continuous-integration-workflow.yaml b/.github/workflows/continuous-integration-workflow.yaml index f860dbbd..da7eed85 100644 --- a/.github/workflows/continuous-integration-workflow.yaml +++ b/.github/workflows/continuous-integration-workflow.yaml @@ -23,23 +23,18 @@ jobs: python -m pip install --upgrade pip pip install -e ".[develop]" - uses: pre-commit/action@v3.0.0 - - name: Run tests and collect coverage + - name: Run tests run: | # -rA displays the captured output for all tests after they're run # See the docs: https://doc.pytest.org/en/latest/reference/reference.html#command-line-flags pytest -rA tests/ - - name: Generate coverage report - # Run these tests on unit tests only so that we avoid inflating our code - # coverage through the regression tests + - name: Run coverage if: matrix.os == 'ubuntu-latest' run: | - pip install pytest - pip install pytest-cov - pytest --cov=./ --cov-report=xml tests/ - - name: Upload coverage to Codecov - if: ${{ env.CODECOV_TOKEN }} # Don't attempt to upload if the codecov token is not configured - uses: codecov/codecov-action@v3 + pip install pytest coverage coveralls + coverage run -m pytest tests/ + - name: Upload coverage to coveralls + if: matrix.os == 'ubuntu-latest' + uses: coverallsapp/github-action@v2 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - fail_ci_if_error: true + github-token: ${{ secrets.GITHUB_TOKEN }}