Skip to content

Commit

Permalink
Update third-party actions in "pytest" CI workflow
Browse files Browse the repository at this point in the history
- Bump ts-graphviz/setup-graphviz v1 → v2
- Inline pre-commit action
  • Loading branch information
khaeru committed Feb 9, 2024
1 parent 39fdfa1 commit 7cd809b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 7cd809b

Please sign in to comment.