Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage to CI #16

Merged
merged 8 commits into from
Jul 14, 2020
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
displayName: 'Install dependencies'

- script: |
pip install pytest pytest-azurepipelines
pytest --verbose
pip install pytest pytest-azurepipelines pytest-cov
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to add these and all of the linters to requirements.txt? Or should we rather maintain a separate CI requirements file?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that in a separate PR.

pytest --verbose --cov=./ --cov-report=xml
displayName: 'pytest'

- script: |
curl https://codecov.io/bash > codecov.sh
bash codecov.sh -t aba016f6-96be-4bc3-bdbe-caa6b6aff815
displayName: 'Upload coverage to codecov.io'

- job: LintFlake8
pool:
vmImage: 'ubuntu-16.04'
Expand Down