@@ -12,43 +12,51 @@ jobs:
1212 lint :
1313 runs-on : ubuntu-24.04
1414 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 }}-
1624 - uses : actions/cache@v4
1725 with :
1826 path : ~/.local/share/virtualenvs
1927 key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
2028 restore-keys : |
2129 ${{ 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'
2930 - name : Install pip dependencies
3031 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
3234 test :
3335 runs-on : ubuntu-24.04
3436 strategy :
3537 matrix :
3638 python-version : ['3.13', '3.12', '3.11', '3.10']
3739 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'
3948 - uses : actions/cache@v4
4049 with :
4150 path : ~/.local/share/virtualenvs
4251 key : ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
4352 restore-keys : |
4453 ${{ 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
5055 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-
5260 - name : Install pip dependencies
5361 run : poetry install
5462 - name : Run tests
0 commit comments