commit: b276077666c2fca47c91eae19669f1bf6c0c702f
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 20:27:06 2024 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 21:34:16 2024 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=b2760776
github: update actions to avoid deprecation warnings
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
.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 e4168203d4..2ac66970e5 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 2091796b7c..ddcd9d486d 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/[email protected]
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 ad71791c0b..1c3fbc48b0 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/[email protected]
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.x'
+ - uses: pre-commit/[email protected]