Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ jobs:
step_name: Run tests
python_version: "3.10"
command: tox -e py310
- codecov/upload
# Upload coverage from one Python version to avoid duplicate Codecov reports.
# Move coverage to another version when we deprecate this one.
- codecov/upload:
flags: unit
- store_artifacts:
path: coverage.xml
destination: coverage/coverage.xml
- store_artifacts:
path: prof/
- store_test_results:
path: .
path: result.xml
linux311:
machine:
image: ubuntu-2404:2025.09.1
Expand All @@ -66,11 +72,10 @@ jobs:
step_name: Run tests
python_version: "3.11"
command: tox -e py311
- codecov/upload
- store_artifacts:
path: prof/
- store_test_results:
path: .
path: result.xml
linux312:
machine:
image: ubuntu-2404:2025.09.1
Expand All @@ -84,11 +89,10 @@ jobs:
step_name: Run tests
python_version: "3.12"
command: --with setuptools==75.8.0 tox -e py312
- codecov/upload
- store_artifacts:
path: prof/
- store_test_results:
path: .
path: result.xml
linters310:
docker:
- image: cimg/python:3.10
Expand Down
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ coverage:

ignore:
- setup.py

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = -v -s -n 4 --junitxml="result.xml"
addopts = -v -n 4 --junitxml="result.xml"
15 changes: 14 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ install_command =
pip install {opts} {packages}

commands =
pytest {posargs} --cov=./ --cov-report=xml
pytest {posargs} --cov=sweeps --cov-report=term-missing:skip-covered --cov-report=xml

[coverage:paths]
source =
src/sweeps
.tox/*/lib/python*/site-packages/sweeps

[coverage:run]
source =
sweeps

[coverage:report]
exclude_also =
if TYPE_CHECKING:

[black]
deps=
Expand Down