Skip to content

Commit

Permalink
CI: Let pytest treat warnings as errors
Browse files Browse the repository at this point in the history
Uses the  -Werror option of pytest to treat warnings as errors.

See https://docs.python.org/3/using/cmdline.html#cmdoption-W
  • Loading branch information
EwoutH committed Aug 12, 2024
1 parent 487561d commit 86cdf99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# - name: Install dependencies
# run: pip install mesa pytest
# - name: Test with pytest
# run: pytest test_examples.py
# run: pytest -rA -Werror test_examples.py

build-pre:
runs-on: ubuntu-latest
Expand All @@ -50,7 +50,7 @@ jobs:
pip install mesa --pre
pip install pytest
- name: Test with pytest
run: pytest -rA test_examples.py
run: pytest -rA -Werror test_examples.py

build-main:
runs-on: ubuntu-latest
Expand All @@ -65,4 +65,4 @@ jobs:
pip install pytest
pip install -U git+https://github.com/projectmesa/mesa@main#egg=mesa
- name: Test with pytest
run: pytest -rA test_examples.py
run: pytest -rA -Werror test_examples.py

0 comments on commit 86cdf99

Please sign in to comment.