Skip to content

Commit

Permalink
Add test coverage to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
redur committed Apr 5, 2024
1 parent c641bff commit 0807322
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 @@ -20,4 +20,10 @@ jobs:
source "${HOME}/.bash_profile"
conda env create -f environment-dev.yml
conda activate boreholes-dev
pytest
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=stratigraphy tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment # For more information see: https://github.com/MishaKav/pytest-coverage-comment/
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- black==24.2.0
- pre-commit==3.6.2
- pytest==8.1.1
- pytest-cov==5.0.0
- pip:
# prod pip dependencies; needs to be a strict copy of environment-prod.yml
- amazon-textract-textractor
Expand Down

0 comments on commit 0807322

Please sign in to comment.