Skip to content

Commit 7930121

Browse files
committed
Upgrade GitHub Actions in pre-commit workflow
1 parent 8329c90 commit 7930121

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ on:
99
jobs:
1010
tests:
1111
name: Python ${{ matrix.python-version }}
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313

1414
strategy:
1515
matrix:
1616
python-version:
17-
- 3.6
18-
- 3.7
19-
- 3.8
20-
- 3.9
17+
- "3.10"
18+
- "3.12"
19+
- "3.14"
2120

2221
steps:
23-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v5
2423

25-
- uses: actions/setup-python@v2
24+
- uses: actions/setup-python@v6
2625
with:
2726
python-version: ${{ matrix.python-version }}
27+
allow-prereleases: true
2828

29-
- uses: actions/cache@v2
29+
- uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pip
3232
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88

99
jobs:
1010
pre-commit:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-python@v2
18+
- uses: actions/setup-python@v6
1919

20-
- uses: pre-commit/action@v2.0.0
20+
- uses: pre-commit/action@v3.0.1
2121
with:
2222
token: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: black
1717
language_version: python3
1818
- repo: https://github.com/pycqa/isort
19-
rev: 5.10.1
19+
rev: 6.0.1
2020
hooks:
2121
- id: isort
2222
- repo: https://github.com/PyCQA/flake8
@@ -27,8 +27,8 @@ repos:
2727
- flake8-bugbear
2828
- flake8-comprehensions
2929
- flake8-tidy-imports
30-
- repo: https://github.com/mgedmin/check-manifest
31-
rev: "0.48"
32-
hooks:
33-
- id: check-manifest
34-
args: [--no-build-isolation]
30+
#- repo: https://github.com/mgedmin/check-manifest
31+
# rev: "0.48"
32+
# hooks:
33+
# - id: check-manifest
34+
# args: [--no-build-isolation]

0 commit comments

Comments
 (0)