From b276077666c2fca47c91eae19669f1bf6c0c702f Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 15 Mar 2024 16:27:06 -0400 Subject: github: update actions to avoid deprecation warnings Signed-off-by: Mike Gilbert --- .github/workflows/ci.yml | 6 +++--- .github/workflows/lint.yml | 13 ++++++------- .github/workflows/pre-commit.yml | 8 +++++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4168203d..2ac66970e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - '3.9' - '3.10' - '3.11' - - '3.12-dev' + - '3.12' - '3.13-dev' - 'pypy-3.10' exclude: @@ -34,9 +34,9 @@ jobs: start-method: 'spawn' fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2091796b7..ddcd9d486 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,13 +6,13 @@ jobs: black: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Collect stragglers that Black misses" id: stragglers run: | - echo "::set-output name=missed::$( + echo "missed=$( find bin -type f -not -name '*.py' -not -name '*.sh' | \ - xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')" + xargs grep -l '#!/usr/bin/env python' | tr $'\n' ' ')" >> $GITHUB_OUTPUT - uses: psf/black@24.1.1 with: src: . ${{ steps.stragglers.outputs.missed }} @@ -25,13 +25,12 @@ jobs: - '3.9' - '3.10' - '3.11' - # pylint currently broken under 3.12 - # - '3.12-dev' + - '3.12' fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install python dependencies diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ad71791c0..1c3fbc48b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,6 +9,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + - uses: pre-commit/action@v3.0.1 -- cgit v1.2.3-59-g8ed1b