From 9048160efb812a6c94191e16fc915dfe644bef41 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 28 Oct 2024 09:40:06 -0400 Subject: [PATCH] Use any v5 version of actions/setup-python --- .github/workflows/pre-commit-detect-outdated.yml | 10 +++++----- .github/workflows/pre-commit.yml | 16 ++++++++-------- .github/workflows/python.yml | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pre-commit-detect-outdated.yml b/.github/workflows/pre-commit-detect-outdated.yml index 8b6c8ac..f92ecb5 100644 --- a/.github/workflows/pre-commit-detect-outdated.yml +++ b/.github/workflows/pre-commit-detect-outdated.yml @@ -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, @@ -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 @@ -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 ' + author: "pre-commit " base: master body: |- For your consideration. diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c7141ca..32f3861 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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: @@ -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 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index bfb7e8d..2d136a2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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/checkout@v4.2.1 - 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