Skip to content

Commit

Permalink
Use any v5 version of actions/setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Oct 28, 2024
1 parent 67c929b commit 9048160
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pre-commit-detect-outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Detect outdated pre-commit hooks

on:
schedule:
- cron: '0 18 * * 5' # Every Friday 6pm
- cron: "0 18 * * 5" # Every Friday 6pm
workflow_dispatch:

# NOTE: This will drop all permissions from GITHUB_TOKEN except metadata read,
Expand All @@ -19,10 +19,10 @@ jobs:
name: Detect outdated pre-commit hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Set up Python 3.12
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@v5
with:
python-version: 3.12

Expand All @@ -42,9 +42,9 @@ jobs:
- name: Create pull request from changes (if any)
id: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
author: 'pre-commit <[email protected]>'
author: "pre-commit <[email protected]>"
base: master
body: |-
For your consideration.
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
name: Run pre-commit

on:
- pull_request
- push
- workflow_dispatch
- pull_request
- push
- workflow_dispatch

# Drop permissions to minimum for security
permissions:
Expand All @@ -17,8 +17,8 @@ jobs:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.12
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9, '3.10', 3.11, 3.12]
python-version: [3.9, "3.10", 3.11, 3.12]

steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.3.0
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down

0 comments on commit 9048160

Please sign in to comment.