Skip to content

Commit

Permalink
Add codecov to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Teester committed Feb 24, 2024
1 parent 5e63d0d commit 0d0e9de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
echo "PYTHONPATH=home/runner/work/entityshape" >> $GITHUB_ENV
- name: Test with unittest
run: |
coverage run --omit=*/site-packages/* -m unittest discover
coverage xml
coverage report
- uses: actions/upload-artifact@v2
with:
name: code-coverage
path: htmlcov
pip install coverage
coverage run -m unittest
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Teester/entityshape

0 comments on commit 0d0e9de

Please sign in to comment.