Skip to content

Commit 0fe3dad

Browse files
authored
Update CI.yml
1 parent d3e9271 commit 0fe3dad

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,18 @@ jobs:
3838
run: |
3939
python -m pip install --upgrade pip
4040
pip install coverage
41-
pip install pytest
41+
pip install pytest pytest-cov
4242
pip install -r requirements.txt
4343
44-
- name: Run tests and Generate coverage report
44+
- name: Run tests
4545
run: |
4646
export PYTHONPATH=src
47-
coverage run -m pytest
48-
coverage report
49-
coverage xml
47+
pytest --cov --cov-report=xml
5048
5149
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v2
50+
uses: codecov/codecov-action@v4
5351
with:
5452
token: ${{ secrets.CODECOV_TOKEN }}
55-
file: ./coverage.xml
5653

5754
docs:
5855
name: Documentation

0 commit comments

Comments
 (0)