Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
added coverage report in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeZ committed Aug 28, 2019
1 parent a5740f6 commit a35ff4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest --cov=xtp_job_control tests
- name: Coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
pytest --cov=xtp_job_control tests
coverage xml && coverage report -m
coverage xml && python-codacy-coverage -r coverage.xml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install:

script:
- pytest --cov=xtp_job_control tests
- coverage xml && coverage report -m
- coverage xml

after_success:
- python-codacy-coverage -r coverage.xml
Expand Down

0 comments on commit a35ff4a

Please sign in to comment.