@@ -14,14 +14,15 @@ jobs:
14
14
os : [ubuntu-latest]
15
15
python : [3.9]
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - uses : actions/setup-python@v4
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-python@v5
19
19
with :
20
20
python-version : ${{ matrix.python }}
21
21
architecture : x64
22
22
- name : Run ruff
23
23
run : |
24
- pip install ruff==0.2.0
24
+ python -m pip install --upgrade uv
25
+ uv pip install --system ruff==0.3.0
25
26
ruff --version
26
27
ruff check --diff .
27
28
@@ -32,20 +33,15 @@ jobs:
32
33
os : [ubuntu-latest]
33
34
python : [3.9]
34
35
steps :
35
- - uses : actions/checkout@v2
36
- - uses : actions/setup-python@v4
36
+ - uses : actions/checkout@v4
37
+ - uses : actions/setup-python@v5
37
38
with :
38
39
python-version : ${{ matrix.python }}
39
40
architecture : x64
40
- - name : Cache python modules
41
- uses : actions/cache@v2
42
- with :
43
- path : ~/.cache/pip
44
- key : ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
45
41
- name : Install dependencies
46
42
run : |
47
- python -m pip install --upgrade pip
48
- pip install -e ".[quality]" --upgrade
43
+ python -m pip install --upgrade uv
44
+ uv pip install --system --upgrade - e ".[quality]"
49
45
- name : Run mypy
50
46
run : |
51
47
mypy --version
@@ -58,14 +54,15 @@ jobs:
58
54
os : [ubuntu-latest]
59
55
python : [3.9]
60
56
steps :
61
- - uses : actions/checkout@v2
62
- - uses : actions/setup-python@v4
57
+ - uses : actions/checkout@v4
58
+ - uses : actions/setup-python@v5
63
59
with :
64
60
python-version : ${{ matrix.python }}
65
61
architecture : x64
66
62
- name : Run ruff
67
63
run : |
68
- pip install ruff==0.2.0
64
+ python -m pip install --upgrade uv
65
+ uv pip install --system ruff==0.3.0
69
66
ruff --version
70
67
ruff format --check --diff .
71
68
@@ -76,14 +73,15 @@ jobs:
76
73
os : [ubuntu-latest]
77
74
python : [3.9]
78
75
steps :
79
- - uses : actions/checkout@v2
80
- - uses : actions/setup-python@v4
76
+ - uses : actions/checkout@v4
77
+ - uses : actions/setup-python@v5
81
78
with :
82
79
python-version : ${{ matrix.python }}
83
80
architecture : x64
84
81
- name : Run pre-commit hooks
85
82
run : |
86
- pip install pre-commit
83
+ python -m pip install --upgrade uv
84
+ uv pip install --system pre-commit
87
85
git checkout -b temp
88
86
pre-commit install
89
87
pre-commit --version
0 commit comments