Address all review comments: fix test counts, remove unused imports, improve workflow
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
This commit is contained in:
parent
0411d0856a
commit
6bb006fbe1
4 changed files with 29 additions and 32 deletions
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
|
@ -38,13 +38,19 @@ jobs:
|
|||
run: |
|
||||
pytest tests/ -v --cov=. --cov-report=xml --cov-report=term-missing
|
||||
|
||||
- name: Generate .coverage file
|
||||
if: matrix.python-version == '3.11'
|
||||
run: |
|
||||
coverage run -m pytest tests/
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
fail_ci_if_error: true
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
- name: Generate coverage badge
|
||||
if: matrix.python-version == '3.11'
|
||||
|
|
@ -94,4 +100,3 @@ jobs:
|
|||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# Exit-zero treats all errors as warnings
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
continue-on-error: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue