Skip to content

Commit

Permalink
Merge pull request #26 from Ostorlab/feature/add_code_coverage
Browse files Browse the repository at this point in the history
Integration of Code Coverage Checks with Codecov
  • Loading branch information
3asm authored Jul 16, 2024
2 parents ed79205 + 02c713f commit f0282e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ jobs:
python -m pip install -r tests/test-requirement.txt
- name: Running tests with pytest.
run: |
pytest
pytest --cov=./ --cov-report=xml:coverage.xml --cov-report=term-missing
- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v4
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
1 change: 1 addition & 0 deletions tests/test-requirement.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ruff
pytest
pytest-cov
pytest-mock
mypy
typing-extensions

0 comments on commit f0282e4

Please sign in to comment.