Skip to content

Commit

Permalink
Attempt to use codecov in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
CircleCI committed Jan 29, 2021
1 parent cff0c80 commit a1adfbf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,13 @@ jobs:
name: run tests
command: |
. venv/bin/activate
# pip install pytest-cov==2.8.1 # hack to avoid regression
#python run_tests.py
python -m pytest --cov=xdoctest --cov-config .coveragerc --cov-report term -s
python run_tests.py
- store_artifacts:
path: test-reports
destination: test-reports
- store_artifacts:
path: .coverage
destination: .coverage


.test_full_template: &test_full_template
Expand Down Expand Up @@ -328,12 +329,13 @@ jobs:
name: run tests
command: |
. venv/bin/activate
# pip install pytest-cov==2.8.1 # hack to avoid regression
#python run_tests.py
python -m pytest --cov=xdoctest --cov-config .coveragerc --cov-report term -s
python run_tests.py
- store_artifacts:
path: test-reports
destination: test-reports
- store_artifacts:
path: .coverage
destination: .coverage

.gpgsign_template: &gpgsign_template
<<:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## Version 0.15.4 - Unreleased

### Fixed
* Minor issues with release tarballs.


## Version 0.15.3 - Released 2021-01-28

Expand Down
12 changes: 8 additions & 4 deletions run_tests.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == '__main__':
import pytest
import sys
# NOTE: it is important to return the correct error code
sys.exit(pytest.main([
package_name = 'xdoctest'
pytest_args = [
'-p', 'pytester',
'-p', 'no:doctest',
'--cov=xdoctest',
'--cov-config', '.coveragerc',
'--cov-report', 'html',
'--cov-report', 'term',
'--xdoctest',
] + sys.argv[1:]))
'--cov=' + package_name,
package_name, 'testing'
]
pytest_args = pytest_args + sys.argv[1:]
sys.exit(pytest.main(pytest_args))

0 comments on commit a1adfbf

Please sign in to comment.