Skip to content

Commit 5ad023b

Browse files
ci: Make pytest warnings become errors (#401)
1 parent 3b497b3 commit 5ad023b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install default (with full options) and test dependencies
2626
run: uv pip install '.[full]' --group test
2727
- name: Run unit and doc tests with coverage report
28-
run: uv run pytest tests/unit tests/doc --cov=src --cov-report=xml
28+
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
2929
- name: Upload results to Codecov
3030
uses: codecov/codecov-action@v4
3131
with:
@@ -44,7 +44,7 @@ jobs:
4444
run: uv pip install . --group test
4545
- name: Run unit and doc tests with coverage report
4646
run: |
47-
uv run pytest tests/unit tests/doc \
47+
uv run pytest -W error tests/unit tests/doc \
4848
--ignore tests/unit/aggregation/test_cagrad.py \
4949
--ignore tests/unit/aggregation/test_nash_mtl.py \
5050
--ignore tests/doc/test_aggregation.py \

0 commit comments

Comments
 (0)