diff --git a/.circleci/config.yml b/.circleci/config.yml index 1e0f4f86..ed1f5765 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 <<: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e52216a..b538bea0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/run_tests.py b/run_tests.py index e941c8ef..041256d3 100755 --- a/run_tests.py +++ b/run_tests.py @@ -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))