Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ddb73ac

Browse files
committed
chore(ci): Replace contrib.yml with tox
1 parent 8e27123 commit ddb73ac

File tree

3 files changed

+39
-83
lines changed

3 files changed

+39
-83
lines changed

‎.github/workflows/contrib.yml‎

Lines changed: 0 additions & 83 deletions
This file was deleted.

‎.github/workflows/tests.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,21 @@ jobs:
141141
with:
142142
user: __token__
143143
password: ${{ secrets.PYPI_API_TOKEN }}
144+
145+
checks:
146+
runs-on: 'ubuntu-latest'
147+
continue-on-error: true
148+
strategy:
149+
matrix:
150+
check: ['specs', 'style']
151+
152+
steps:
153+
- uses: actions/checkout@v4
154+
- name: Install the latest version of uv
155+
uses: astral-sh/setup-uv@v3
156+
- name: Show tox config
157+
run: uvx tox c
158+
- name: Show tox config (this call)
159+
run: uvx tox c -e ${{ matrix.check }}
160+
- name: Run check
161+
run: uvx tox -e ${{ matrix.check }}

‎tox.ini‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,24 @@ uv_resolution =
8888
commands =
8989
python -c "import nipype; print(nipype.__version__)"
9090
pytest --durations=20 --durations-min=1.0 --cov-report term-missing {posargs:-n auto}
91+
92+
[testenv:specs]
93+
description = Rebuild spec tests
94+
deps =
95+
black
96+
# Rebuild dipy specs
97+
dipy
98+
# Faster to install old numpy than unreleased Dipy
99+
# This can be dropped once a Dipy release supports numpy 2
100+
numpy<2
101+
commands =
102+
python tools/checkspecs.py
103+
104+
[testenv:style]
105+
description = Check our style guide
106+
labels = check
107+
deps =
108+
black
109+
skip_install = true
110+
commands =
111+
black --check --diff nipype setup.py

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /