Skip to content

Commit 8a610ff

Browse files
committed
Use spin in CI pipelines
1 parent ecb2325 commit 8a610ff

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121

2222
- name: Install packages
2323
run: |
24-
python -m pip install --upgrade pip wheel setuptools
24+
python -m pip install --upgrade pip wheel setuptools spin
2525
python -m pip install ".[test]"
2626
python -m pip install --upgrade numpy
2727
python -m pip uninstall --yes scipy
2828
pip list
2929
3030
- name: Measure test coverage
3131
run: |
32-
python -m pytest --cov=lazy_loader --durations=10
32+
spin test -c -- --durations=10
3333
# Tests fail if using `--doctest-modules`. I.e.,
34-
# python -m pytest --cov=src --durations=10 --doctest-modules
34+
# spin test -- --doctest-modules
3535
3636
- name: Upload coverage to Codecov
3737
uses: codecov/codecov-action@v5

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- name: Build wheels
2727
run: |
2828
git clean -fxd
29-
pip install -U build twine wheel
30-
python -m build --sdist --wheel
29+
pip install -U build twine wheel spin
30+
spin sdist -- --wheel
3131
3232
- name: Publish package distributions to PyPI
3333
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525

2626
- name: Install dependencies
2727
run: |
28-
python -m pip install --upgrade pip
28+
python -m pip install --upgrade pip spin
2929
python -m pip install ".[test]"
3030
3131
- name: Test
3232
run: |
33-
python -m pytest
33+
spin test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
[project.optional-dependencies]
2727
test = ["pytest >= 8.0", "pytest-cov >= 5.0", "coverage[toml] >= 7.2"]
2828
lint = ["pre-commit == 4.2.0"]
29-
dev = ["changelist == 0.5"]
29+
dev = ["changelist == 0.5", "spin == 0.14"]
3030

3131
[project.urls]
3232
Home = "https://scientific-python.org/specs/spec-0001/"

0 commit comments

Comments
 (0)