Skip to content

Commit 7f30b15

Browse files
Expanding unit_tests to run coverage
1 parent d8b6c7a commit 7f30b15

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
environment-name: py3_parcels
2626
- name: Unit test
2727
run: |
28-
python -m pytest -v -s tests
28+
coverage run -m python -m pytest -v -s tests
29+
coverage xml
2930
- name: Upload coverage reports to Codecov
3031
uses: codecov/codecov-action@v4.0.1
3132
with:
33+
flags: unit-tests
3234
token: ${{ secrets.CODECOV_TOKEN }}

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dependencies:
88

99
# Testing
1010
- pytest
11+
- coverage

0 commit comments

Comments
 (0)