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:
319319
320320 # region Pytest image tests
321321
322+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
323+
322324 # https://github.com/astral-sh/setup-uv
323325 - name : Install the latest version of uv
324326 uses : astral-sh/setup-uv@v5
325327 with :
326328 version : " latest"
327329 python-version : " 3.12"
328330 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"
331333
332334 - name : Check uv is installed correctly
333335 run : uv version
Original file line number Diff line number Diff line change @@ -34,15 +34,17 @@ jobs:
3434 steps :
3535 - uses : actions/checkout@v5
3636
37+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
38+
3739 # https://github.com/astral-sh/setup-uv
3840 - name : Install the latest version of uv
3941 uses : astral-sh/setup-uv@v5
4042 with :
4143 version : " latest"
4244 python-version : " 3.12"
4345 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"
4648
4749 - name : Check uv is installed correctly
4850 run : uv version
5456 - name : Run pre-commit on all files
5557 run : |
5658 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
5762
5863 - run : uv run pytest
5964
Original file line number Diff line number Diff line change @@ -18,15 +18,17 @@ jobs:
1818 steps :
1919 - uses : actions/checkout@v5
2020
21+ - run : echo "UV_PROJECT=${PWD}/tests" >> "${GITHUB_ENV}"
22+
2123 # https://github.com/astral-sh/setup-uv
2224 - name : Install the latest version of uv
2325 uses : astral-sh/setup-uv@v5
2426 with :
2527 version : " latest"
2628 python-version : " 3.12"
2729 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"
3032
3133 - name : Run the release notes script
3234 run : |
You can’t perform that action at this time.
0 commit comments