Skip to content
Draft
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
1 change: 1 addition & 0 deletions .cspell/library_terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ warpfunctions
weathersit
windspeed
workingday
worksteal
xlabel
xlim
xscale
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Debug - uv pip freeze
run: uv pip freeze
- name: Assess coverage of unit tests
run: uv run pytest tests/units tests/test_doctests.py --cov
run: uv run pytest tests/units tests/test_doctests.py --cov -n auto --dist worksteal
- name: Extract total coverage percentage
id: cov
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ jobs:
- name: Debug - uv pip freeze
run: uv pip freeze
- name: Test with pytest
run: uv run pytest tests --ignore=tests/test_examples.py
run: uv run pytest tests --ignore=tests/test_examples.py -n auto --dist worksteal
# The example notebooks are slow, so only run if all other tests pass.
- name: Test example notebooks
run: uv run pytest tests/test_examples.py
run: uv run pytest tests/test_examples.py -n auto --dist worksteal
release-github:
name: Create GitHub draft release
needs: test
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
--ignore=tests/test_examples.py
-W "error::vanguard.utils.UnseededRandomWarning"
-m "no_beartype"
-n auto
--dist worksteal
if: matrix.python-version == '3.13'
- name: Test with pytest (and type checking)
run: >
Expand All @@ -74,12 +76,16 @@ jobs:
-W "error::vanguard.utils.UnseededRandomWarning"
-m "not no_beartype"
--beartype-packages="vanguard"
-n auto
--dist worksteal
if: matrix.python-version == '3.13'
- name: Run all tests
run: >
uv run pytest
--ignore=tests/test_examples.py
-W "error::vanguard.utils.UnseededRandomWarning"
-n auto
--dist worksteal
if: matrix.python-version != '3.13'
- name: Minimize UV cache
run: uv cache prune --ci
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unittests_lowest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
uv run --frozen --no-dev pytest
--ignore=tests/test_examples.py
-W "error::vanguard.utils.UnseededRandomWarning"
-n auto
--dist worksteal
- name: Minimize UV cache
run: uv cache prune --ci
if: always()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test = [
"tqdm>=4", # for notebook tests
"pytest-beartype>=0.1",
"pytest-cov>=5",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
"beartype>=0.19, !=0.20",
]
Expand Down
38 changes: 31 additions & 7 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading