Skip to content

Commit

Permalink
Integrate coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelmassot committed Feb 24, 2021
1 parent 67af60e commit cdc71e3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install flake8 pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
Expand All @@ -35,3 +35,13 @@ jobs:
- name: Test with pytest
run: |
python -m pytest
- name: Generate coverage report
run: |
python -m pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not needed for public repos
flags: unittests
fail_ci_if_error: true
verbose: true

0 comments on commit cdc71e3

Please sign in to comment.