Skip to content

Commit 2a72610

Browse files
authored
Update Actions config for py3.7-3.11 (#93)
* Update Actions config for py3.7-3.11 * Run pre-commit directly with pipx * Revert "Run pre-commit directly with pipx" This reverts commit bdc7494. * Update pyupgrade * Update isort
1 parent ef18efc commit 2a72610

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

.github/workflows/CI.yml renamed to .github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
name: CI
2-
1+
name: main
32

43
on:
54
workflow_dispatch:
65
pull_request:
76
push:
8-
branches: [ staging ]
7+
branches: [ staging, master ]
98

109
jobs:
1110
pre-commit:
1211
name: Format
1312
runs-on: ubuntu-latest
1413
steps:
15-
- uses: actions/checkout@v1
16-
- uses: actions/setup-python@v2
17-
- uses: pre-commit/action@v2.0.3
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v4
16+
- uses: pre-commit/action@v3.0.0
1817
with:
1918
extra_args: --hook-stage manual --all-files
2019

@@ -24,11 +23,11 @@ jobs:
2423
strategy:
2524
fail-fast: false
2625
matrix:
27-
python-version: ["3.7", "3.10"]
26+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2827
runs-on: [ubuntu-latest, macos-latest, windows-latest]
2928
steps:
30-
- uses: actions/checkout@v2
31-
- uses: actions/setup-python@v2
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-python@v4
3231
with:
3332
python-version: ${{ matrix.python-version }}
3433
- name: Install package

.github/workflows/test-latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.7", "3.10"]
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1717
runs-on: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-python@v2
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Install package

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ repos:
3535
- id: rst-inline-touching-normal
3636

3737
- repo: https://github.com/PyCQA/isort
38-
rev: 5.10.1
38+
rev: 5.12.0
3939
hooks:
4040
- id: isort
4141
# args: ["-a", "from __future__ import annotations"] # Python 3.7+
4242

4343
- repo: https://github.com/asottile/pyupgrade
44-
rev: v2.31.1
44+
rev: v3.4.0
4545
hooks:
4646
- id: pyupgrade
4747
args: ["--py37-plus"]

0 commit comments

Comments
 (0)