-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update third-party actions in "pytest" CI workflow
- Bump ts-graphviz/setup-graphviz v1 → v2 - Inline pre-commit action
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -82,15 +82,17 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
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/[email protected] | ||
run: pre-commit clean | ||
- run: pre-commit run --all-files --color=always --show-diff-on-failure |