Skip to content

Commit 27eab5d

Browse files
committed
Break out checks
1 parent 588f8e1 commit 27eab5d

1 file changed

Lines changed: 32 additions & 20 deletions

File tree

.github/workflows/CI.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ jobs:
4848
args: --release --pgo --strip --interpreter python --manifest-path py-forust/Cargo.toml --out dist
4949
- name: Install wheel
5050
run: uv pip install --system forust --no-index --find-links dist --no-deps --force-reinstall
51-
- name: Lint and test
51+
- name: Lint
5252
working-directory: py-forust
53-
run: |
54-
ruff check forust
55-
ruff format --check forust
56-
pytest --cov-fail-under=90 tests
53+
run: ruff check .
54+
- name: Format check
55+
working-directory: py-forust
56+
run: ruff format --check forust
57+
- name: Run package tests
58+
working-directory: py-forust
59+
run: pytest --cov-fail-under=90 tests
5760
- uses: actions/upload-artifact@v4
5861
with:
5962
name: wheels-windows-${{ matrix.pyversion }}
@@ -96,12 +99,15 @@ jobs:
9699
args: --release --pgo --strip --interpreter python --manifest-path py-forust/Cargo.toml --out dist
97100
- name: Install wheel
98101
run: uv pip install --system forust --no-index --find-links dist --no-deps --force-reinstall
99-
- name: Lint and test
102+
- name: Lint
100103
working-directory: py-forust
101-
run: |
102-
ruff check forust
103-
ruff format --check forust
104-
pytest --cov-fail-under=90 tests
104+
run: ruff check .
105+
- name: Format check
106+
working-directory: py-forust
107+
run: ruff format --check forust
108+
- name: Run package tests
109+
working-directory: py-forust
110+
run: pytest --cov-fail-under=90 tests
105111
- uses: actions/upload-artifact@v4
106112
with:
107113
name: wheels-macos-${{ matrix.pyversion }}
@@ -145,12 +151,15 @@ jobs:
145151
args: --release --pgo --strip --interpreter python --manifest-path py-forust/Cargo.toml --out dist
146152
- name: Install wheel
147153
run: uv pip install --system forust --no-index --find-links dist --no-deps --force-reinstall
148-
- name: Lint and test
154+
- name: Lint
149155
working-directory: py-forust
150-
run: |
151-
ruff check forust
152-
ruff format --check forust
153-
pytest --cov-fail-under=90 tests
156+
run: ruff check .
157+
- name: Format check
158+
working-directory: py-forust
159+
run: ruff format --check forust
160+
- name: Run package tests
161+
working-directory: py-forust
162+
run: pytest --cov-fail-under=90 tests
154163
- uses: actions/upload-artifact@v4
155164
with:
156165
name: wheels-macos-intel-${{ matrix.pyversion }}
@@ -194,12 +203,15 @@ jobs:
194203
args: --release --pgo --strip --interpreter python${{ matrix.pyversion }} --manifest-path py-forust/Cargo.toml --out dist
195204
- name: Install wheel
196205
run: uv pip install --system forust --no-index --find-links dist --no-deps --force-reinstall
197-
- name: Lint and test
206+
- name: Lint
198207
working-directory: py-forust
199-
run: |
200-
ruff check forust
201-
ruff format --check forust
202-
pytest --cov-fail-under=90 tests
208+
run: ruff check .
209+
- name: Format check
210+
working-directory: py-forust
211+
run: ruff format --check forust
212+
- name: Run package tests
213+
working-directory: py-forust
214+
run: pytest --cov-fail-under=90 tests
203215
- uses: actions/upload-artifact@v4
204216
with:
205217
name: wheels-linux-${{ matrix.pyversion }}

0 commit comments

Comments
 (0)