Skip to content

Commit d8ebd85

Browse files
authored
require pre-commit before running other tests (#50)
1 parent f8f4ebd commit d8ebd85

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/run-tests.yml.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- uses: pre-commit-ci/lite-action@v1.1.0
2828
if: ${{ !cancelled() }}
2929
run_tests:
30+
needs: pre_commit_checks
3031
strategy:
3132
matrix:
3233
python_version: ["3.11", "3.12", "3.13", "3.14"]

.github/workflows/test-template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- uses: pre-commit-ci/lite-action@v1.1.0
2828
if: ${{ !cancelled() }}
2929
run_tests:
30+
needs: pre_commit_checks
3031
strategy:
3132
matrix:
3233
python_version: ["3.11", "3.12", "3.13", "3.14"]

pyproject.toml.jinja

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ lint.shell = """
114114
pre-commit run --all-files
115115
"""
116116
pipeline.shell = """
117-
pre-commit run --all-files
118-
pytest
117+
pre-commit run --all-files && pytest
119118
"""
120119
jupyter.shell = """
121120
jupyter lab

0 commit comments

Comments
 (0)