File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,15 @@ jobs:
25
25
- name : Checkout code
26
26
uses : actions/checkout@v4
27
27
28
- - name : Set up Python
29
- uses : actions /setup-python @v5
28
+ - name : Install uv and set the python version
29
+ uses : astral-sh /setup-uv @v5
30
30
with :
31
- cache : ' pip'
32
- cache-dependency-path : ' **/pyproject.toml'
33
31
python-version : " 3.12"
32
+ enable-cache : true
33
+ cache-dependency-glob : " uv.lock"
34
34
35
- - name : Install uv
36
- uses : astral-sh/setup-uv@v5
37
-
38
- - name : Install dependencies with uv
39
- run : |
40
- uv sync
35
+ - name : Install the project
36
+ run : uv sync --locked --all-extras --dev
41
37
42
38
- name : Run tests
43
39
run : uv run pytest tests
@@ -50,17 +46,15 @@ jobs:
50
46
- name : Checkout code
51
47
uses : actions/checkout@v4
52
48
53
- - name : Set up Python
54
- uses : actions /setup-python @v5
49
+ - name : Install uv and set the python version
50
+ uses : astral-sh /setup-uv @v5
55
51
with :
56
- cache : ' pip'
57
- cache-dependency-path : ' **/pyproject.toml'
58
52
python-version : " 3.12"
53
+ enable-cache : true
54
+ cache-dependency-glob : " uv.lock"
59
55
60
- - name : Install uv
61
- run : |
62
- curl -LsSf https://astral.sh/uv/install.sh | sh
63
- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
56
+ - name : Install the project
57
+ run : uv sync --locked --all-extras --dev
64
58
65
59
- name : Run lint checks
66
60
run : make lint
You can’t perform that action at this time.
0 commit comments