File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,26 @@ jobs:
4444 pre-commit install
4545
4646 - name : Run pre-commit hooks
47- continue-on-error : true
4847 run : >
4948 git ls-files | xargs pre-commit run
5049 --show-diff-on-failure
5150 --color=always
5251 --files
5352
5453 - name : Test with pytest
55- continue-on-error : true
56- run : |
54+ run : >
5755 pytest tests
56+ --log-cli-level=DEBUG
57+ --cov=pydaikin
58+ --cov-report=xml
59+
60+ - name : Upload coverage report
61+ uses : actions/upload-artifact@v4
62+ with :
63+ name : coverage-report-${{ matrix.python-version }}
64+ path : coverage.xml
65+ - name : Upload coverage to Codecov
66+ uses : codecov/codecov-action@v4
67+ with :
68+ token : ${{ secrets.CODECOV_TOKEN }}
69+ files : coverage.xml
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ __pycache__
88.idea /
99* .pyc
1010venv /
11+ .coverage
Original file line number Diff line number Diff line change 1+ coverage :
2+ status :
3+ project :
4+ default :
5+ target : auto
6+ # adjust accordingly based on how flaky your tests are
7+ # this allows a 10% drop from the previous base commit coverage
8+ threshold : 10%
Original file line number Diff line number Diff line change 11freezegun==1.5.1
22pytest==8.3.2
33pytest-asyncio==0.24.0
4+ pytest-cov==5.0.0
5+ aresponses==3.0.0
You can’t perform that action at this time.
0 commit comments