File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,14 @@ jobs:
2626 - name : Install dependencies
2727 run : |
2828 python -m pip install --upgrade pip
29- pip install pytest
29+ pip install pytest, pytest-cov
3030 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3131 - name : Install dataflow_transfer
3232 run : pip install -e .
3333 - name : Test with pytest
3434 run : |
35- pytest
35+ pytest --cov --cov-branch --cov-report=xml
36+ - name : Upload coverage reports to Codecov
37+ uses : codecov/codecov-action@v5
38+ with :
39+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ dependencies = [
4040dev = [
4141 " ruff>=0.11.8" ,
4242 " pytest" ,
43+ " pytest-cov" ,
4344]
4445
4546[project .scripts ]
Original file line number Diff line number Diff line change 1+ -r requirements.txt
2+ ruff >= 0.11.8
3+ pytest
4+ pytest-cov
You can’t perform that action at this time.
0 commit comments