Skip to content

Commit 7b7d4d4

Browse files
authored
Update Python CI workflow for coverage and dependencies
1 parent 16663c0 commit 7b7d4d4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/python_app.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install flake8 pytest coverage black Cython
26+
pip install flake8 pytest pytest-cov coverage black Cython
2727
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2828
pip install -e .
2929
- name: Code formatting with Black
@@ -40,8 +40,10 @@ jobs:
4040
pytest
4141
- name: Generate coverage report
4242
run: |
43+
pytest --cov --cov-branch --cov-report=xml
4344
coverage run -m pytest
44-
- name: Upload Coverage to Codecov
45-
uses: codecov/codecov-action@v1
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
4647
with:
47-
fail_ci_if_error: true
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
slug: andr1976/ramdecom

0 commit comments

Comments
 (0)