Skip to content

Commit

Permalink
Run actions/setup-python with python-version input (#10)
Browse files Browse the repository at this point in the history
Also bumps pre-commit reusable actions
  • Loading branch information
flaeppe committed Sep 30, 2022
1 parent 3c9d1a4 commit 3851986
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
name: Run pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ inputs.python-version }}
restore-keys: ${{ runner.os }}-pip
- name: pre-commit cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: >-
Expand Down

0 comments on commit 3851986

Please sign in to comment.