File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -319,15 +319,17 @@ jobs:
319
319
320
320
# region Pytest image tests
321
321
322
+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
323
+
322
324
# https://github.com/astral-sh/setup-uv
323
325
- name : Install the latest version of uv
324
326
uses : astral-sh/setup-uv@v5
325
327
with :
326
328
version : " latest"
327
329
python-version : " 3.12"
328
330
enable-cache : true
329
- cache-dependency-glob : " uv.lock"
330
- pyproject-file : " pyproject.toml"
331
+ cache-dependency-glob : " tests/ uv.lock"
332
+ pyproject-file : " tests/ pyproject.toml"
331
333
332
334
- name : Check uv is installed correctly
333
335
run : uv version
Original file line number Diff line number Diff line change @@ -34,15 +34,17 @@ jobs:
34
34
steps :
35
35
- uses : actions/checkout@v5
36
36
37
+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
38
+
37
39
# https://github.com/astral-sh/setup-uv
38
40
- name : Install the latest version of uv
39
41
uses : astral-sh/setup-uv@v5
40
42
with :
41
43
version : " latest"
42
44
python-version : " 3.12"
43
45
enable-cache : true
44
- cache-dependency-glob : " uv.lock"
45
- pyproject-file : " pyproject.toml"
46
+ cache-dependency-glob : " tests/ uv.lock"
47
+ pyproject-file : " tests/ pyproject.toml"
46
48
47
49
- name : Check uv is installed correctly
48
50
run : uv version
54
56
- name : Run pre-commit on all files
55
57
run : |
56
58
uv run pre-commit run --all-files
59
+ env :
60
+ # warning: `VIRTUAL_ENV=.venv` does not match the project environment path `tests/.venv` and will be ignored; use `--active` to target the active environment instead
61
+ VIRTUAL_ENV : tests/.venv
57
62
58
63
- run : uv run pytest
59
64
Original file line number Diff line number Diff line change @@ -18,15 +18,17 @@ jobs:
18
18
steps :
19
19
- uses : actions/checkout@v5
20
20
21
+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
22
+
21
23
# https://github.com/astral-sh/setup-uv
22
24
- name : Install the latest version of uv
23
25
uses : astral-sh/setup-uv@v5
24
26
with :
25
27
version : " latest"
26
28
python-version : " 3.12"
27
29
enable-cache : true
28
- cache-dependency-glob : " uv.lock"
29
- pyproject-file : " pyproject.toml"
30
+ cache-dependency-glob : " tests/ uv.lock"
31
+ pyproject-file : " tests/ pyproject.toml"
30
32
31
33
- name : Run the release notes script
32
34
run : |
You can’t perform that action at this time.
0 commit comments