File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,21 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
5
pull_request :
8
6
9
7
jobs :
10
- tests :
11
- name : Python ${{ matrix.python-version }}
12
- runs-on : ubuntu-24.04
8
+ pre-commit :
9
+ name : Run pre-commit hooks
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout
13
+ - uses : actions/setup-python
14
+ - run : python -m pip install --upgrade pre-commit
15
+ - run : pre-commit run -a
13
16
17
+ tests :
18
+ name : Run tests using Python ${{ matrix.python-version }}
19
+ runs-on : ubuntu-latest
14
20
strategy :
15
21
matrix :
16
22
python-version :
@@ -19,18 +25,10 @@ jobs:
19
25
- ' 3.11'
20
26
- ' 3.12'
21
27
- ' 3.13'
22
-
23
28
steps :
24
- - uses : actions/checkout@v2
25
-
26
- - uses : actions/setup-python@v2
27
- with :
28
- python-version : ${{ matrix.python-version }}
29
-
30
- - name : Install dependencies
31
- run : |
32
- python -m pip install --upgrade pip setuptools wheel
33
- python -m pip install --upgrade nox
34
-
35
- - name : Run tox targets for ${{ matrix.python-version }}
36
- run : nox --session tests-${{ matrix.python-version }}
29
+ - uses : actions/checkout
30
+ - uses : actions/setup-python
31
+ with :
32
+ python-version : ${{ matrix.python-version }}
33
+ - run : python -m pip install --upgrade nox
34
+ - run : nox --session tests-${{ matrix.python-version }}
You can’t perform that action at this time.
0 commit comments