Skip to content

Commit

Permalink
fixup! Add coverage pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
daklauss committed Jan 10, 2025
1 parent 52d980a commit a2821f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,19 @@ jobs:
- name: Coverage Run
continue-on-error: true
run: |
coverage run -m pytest tests --testmon --durations=10
- name: Coverage Result
if: always()
run: |
coverage report -m
pytest tests --testmon --cov-report=xml
env:
CI: true # Wichtig für Coverage-Tools

- name: Save Testmon Data
if: always()
uses: actions/cache@v4
with:
path: .testmondata
key: testmon-${{ github.ref }}-${{ hashFiles('**/*.py') }}
key: testmon-${{ github.ref }}-${{ hashFiles('**/*.py') }}

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.xml
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ax = [
]
coverage = [
"coverage",
"pytest-cov",
"pytest-testmon"
]

Expand Down

0 comments on commit a2821f0

Please sign in to comment.