Skip to content

Commit

Permalink
Add CodeCov to pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-thom committed Apr 15, 2024
1 parent 502bb49 commit ed64fb9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/pull_request_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
python -m pip install ".[dev]"
- name: Run pytest
run: |
python -m pytest -v --disable-warnings tests
python -m pytest -v --disable-warnings --cov=./ --cov-report=xml:coverage.xml tests
cat coverage.xml
mypy:
runs-on: ubuntu-latest
name: "mypy"
Expand All @@ -39,3 +40,15 @@ jobs:
src: "src"
pip_install_command: "pip install -e .[dev]"
python_version: "3.11"
codecov:
runs-on: ubuntu-latest
name: codecov
steps:
- uses: codecov/[email protected]
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
verbose: true

0 comments on commit ed64fb9

Please sign in to comment.