diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90e0ad6..1bb3c4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,6 @@ on: push: branches: ["master"] pull_request: - branches: ["master"] permissions: contents: read @@ -37,3 +36,17 @@ jobs: - name: "Enforce coverage" run: uv run coverage report --show-missing --skip-covered --fail-under=100 + + check-tests: + name: "Tests successful" + needs: [tests] + runs-on: "ubuntu-latest" + if: always() + + steps: + - name: "Check results" + run: | + if [ "${{ needs.tests.result }}" != "success" ]; then + echo "Tests failed" + exit 1 + fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58e00e8..03d55d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,8 +2,6 @@ ci: autoupdate_schedule: weekly autofix_prs: false autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' -default_language_version: - python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0