diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 667d139a..30ce51aa 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -57,7 +57,7 @@ jobs: cache: pip cache-dependency-path: "**/pyproject.toml" - - uses: ts-graphviz/setup-graphviz@v1 + - uses: ts-graphviz/setup-graphviz@v2 with: macos-skip-brew-update: true @@ -85,12 +85,13 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 + with: { python-version: 3.x } + - run: python -m pip install pre-commit && python -m pip freeze --local + - uses: actions/cache@v4 with: - python-version: "3.x" - + path: ~/.cache/pre-commit + key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} - name: Force recreation of pre-commit virtual environment for mypy if: github.event_name == 'schedule' # Comment this line to run on a PR - run: gh cache list -L 999 | cut -f2 | grep pre-commit | xargs -I{} gh cache delete "{}" || true - env: { GH_TOKEN: "${{ github.token }}" } - - - uses: pre-commit/action@v3.0.0 + run: pre-commit clean + - run: pre-commit run --all-files --color=always --show-diff-on-failure