Skip to content

Commit

Permalink
Update to generate code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cpondoc committed Nov 11, 2023
1 parent 2be1e90 commit 503a0e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
- name: Install package locally
run: pip install -e wildfire_evac
- name: Install pytest for testing
run: python -m pip install pytest
run: python -m pip install pytest pytest-cov
- name: Run tests
run: python -m pytest -s
- name: Generate code coverage file
run: python -m pytest --cov .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Standard elements to receive
# Standard elements to remove
__pycache__
.pytest_cache
frontend/
.DS_Store
env/
.coverage

# Elements associated with publishing as a package
wildfire_evac/wildfire_evac.egg-info/
Expand Down

0 comments on commit 503a0e3

Please sign in to comment.