@@ -42,38 +42,30 @@ jobs:
42
42
python-version : ' 3.12'
43
43
# cache: 'pip'
44
44
- name : set up `uv`
45
- run : pip install uv && uv pip list
46
- - name : restore uv cache
47
- uses : actions/cache/restore@v4
48
- id : cache-uv-restore
45
+ uses : astral-sh/setup-uv@v5
49
46
with :
50
- path : ~/.cache/uv
51
- key : uv
47
+ version : " 0.6.2"
48
+ enable-cache : true
49
+ cache-dependency-glob : " uv.lock"
52
50
- name : install pip dependencies with uv
53
51
run : >
54
- uv pip sync --system requirements. dev.txt
55
- && uv pip install --system . deps/wtforms-widgets
56
- && uv pip list --system
52
+ uv sync --locked -- dev
53
+ && uv pip install deps/wtforms-widgets
54
+ && uv pip list
57
55
id : pip-install
58
- - name : save uv cache
59
- uses : actions/cache/save@v4
60
- id : cache-uv-save
61
- with :
62
- path : ~/.cache/uv
63
- key : uv
64
56
# now come the tests
65
57
- name : Execute ruff
66
- run : ruff check --output-format=github .
58
+ run : uv run ruff check --output-format=github .
67
59
if : success() || steps.pip-install.conclusion == 'success'
68
60
- name : Execute mypy
69
- run : ./scripts/run_mypy.sh
61
+ run : uv run ./scripts/run_mypy.sh
70
62
if : success() || steps.pip-install.conclusion == 'success'
71
63
# docs stuff
72
64
- name : Build sphinx docs
73
- run : make SPHINXOPTS="-EN -w sphinx.log" -C doc html
65
+ run : uv run make SPHINXOPTS="-EN -w sphinx.log" -C doc html
74
66
if : success() || steps.pip-install.conclusion == 'success'
75
67
- name : Render sphinx warnings as annotations
76
- run : python ./scripts/render_sphinx_log.py doc/sphinx.log
68
+ run : uv run python ./scripts/render_sphinx_log.py doc/sphinx.log
77
69
if : success() || steps.pip-install.conclusion == 'success'
78
70
- name : Publish sphinx docs as pages artifact
79
71
uses : actions/upload-pages-artifact@v3
0 commit comments