diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc7ed0b..3072ad0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,17 @@ concurrency: jobs: pre-commit-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Set $PY environment variable + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + - uses: pre-commit/action@v3.0.1 + + project-pre-commit-check: strategy: matrix: python-version: ["3.12", "3.11", "3.10"] @@ -45,6 +56,7 @@ jobs: needs: - pre-commit-check + - project-pre-commit-check runs-on: ubuntu-latest