Skip to content

Commit

Permalink
Simplify pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Jul 5, 2023
1 parent 702d656 commit 02bd4df
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RENV_CONFIG_CACHE_ENABLED: false
R_CACHE_ROOTPATH: ~/.cache/pre-commit
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, any::styler, local::.
# Replacement for pre-commit/action
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.x

- uses: pre-commit/[email protected]
- run: python -m pip install pre-commit
shell: bash

- run: python -m pip freeze --local
shell: bash

- run: pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash

0 comments on commit 02bd4df

Please sign in to comment.