From 1c7de54eb05d238483337e9446d90b2cbdc05bf7 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Fri, 24 May 2024 10:18:19 -0400 Subject: [PATCH] Update software versions in hooks and github workflows We're getting warnings on our Github workflows: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. This commit updates the github workflows to current releases. It brings our pre-commit hook versions up-to-date as well. --- .github/workflows/pre-commit.yaml | 8 +++++--- .github/workflows/unit-test.yaml | 4 ++-- .pre-commit-config.yaml | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index cec95ee..60feb89 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -8,6 +8,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 0f3bdd9..43fbc8e 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e51bd9..361288c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.11 + rev: v1.5.5 hooks: - id: remove-tabs - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: check-merge-conflict