From 79301217456105b9e8155188bf42b59473c1254e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 17 Sep 2025 08:23:19 +0200 Subject: [PATCH] Upgrade GitHub Actions in pre-commit workflow --- .github/workflows/main.yml | 16 ++++++++-------- .github/workflows/pre-commit.yml | 8 ++++---- .pre-commit-config.yaml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec1dd31..f898dd6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,24 +9,24 @@ on: jobs: tests: name: Python ${{ matrix.python-version }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: - - 3.6 - - 3.7 - - 3.8 - - 3.9 + - "3.10" + - "3.12" + - "3.14" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 3a05705..302e522 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,15 +8,15 @@ on: jobs: pre-commit: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v6 - - uses: pre-commit/action@v2.0.0 + - uses: pre-commit/action@v3.0.1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdbfbe9..703909d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: black language_version: python3 - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 @@ -27,8 +27,8 @@ repos: - flake8-bugbear - flake8-comprehensions - flake8-tidy-imports -- repo: https://github.com/mgedmin/check-manifest - rev: "0.48" - hooks: - - id: check-manifest - args: [--no-build-isolation] +#- repo: https://github.com/mgedmin/check-manifest +# rev: "0.48" +# hooks: +# - id: check-manifest +# args: [--no-build-isolation]