@@ -12,43 +12,51 @@ jobs:
12
12
lint :
13
13
runs-on : ubuntu-24.04
14
14
steps :
15
- - uses : actions/checkout@master
15
+ - uses : actions/checkout@v4
16
+ - uses : jdx/mise-action@v2
17
+ - name : Cache pre-commit environment
18
+ uses : actions/cache@v4
19
+ with :
20
+ path : ~/.cache/pre-commit
21
+ key : pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
22
+ restore-keys : |
23
+ pre-commit-${{ runner.os }}-
16
24
- uses : actions/cache@v4
17
25
with :
18
26
path : ~/.local/share/virtualenvs
19
27
key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
20
28
restore-keys : |
21
29
${{ runner.os }}-poetry-
22
- - uses : actions/setup-python@v5
23
- with :
24
- python-version : ' 3.13'
25
- - name : Install poetry
26
-
27
- with :
28
- poetry-version : ' 1.5.0'
29
30
- name : Install pip dependencies
30
31
run : poetry install
31
- -
uses :
pre-commit/[email protected]
32
+ - name : Run pre-commit
33
+ run : pre-commit run --all-files --show-diff-on-failure --color=always
32
34
test :
33
35
runs-on : ubuntu-24.04
34
36
strategy :
35
37
matrix :
36
38
python-version : ['3.13', '3.12', '3.11', '3.10']
37
39
steps :
38
- - uses : actions/checkout@master
40
+ - uses : actions/checkout@v4
41
+ - uses : actions/setup-python@v5
42
+ with :
43
+ python-version : ' ${{ matrix.python-version }}'
44
+ - name : Install poetry
45
+
46
+ with :
47
+ poetry-version : ' 1.5.1'
39
48
- uses : actions/cache@v4
40
49
with :
41
50
path : ~/.local/share/virtualenvs
42
51
key : ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
43
52
restore-keys : |
44
53
${{ runner.os }}-poetry-
45
- - uses : actions/setup-python@v5
46
- with :
47
- python-version : ' ${{ matrix.python-version }}'
48
- - name : Install poetry
49
-
54
+ - uses : actions/cache@v4
50
55
with :
51
- poetry-version : ' 1.5.0'
56
+ path : ~/.local/share/virtualenvs
57
+ key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
58
+ restore-keys : |
59
+ ${{ runner.os }}-poetry-
52
60
- name : Install pip dependencies
53
61
run : poetry install
54
62
- name : Run tests
0 commit comments