Skip to content

Commit 968239c

Browse files
committed
NO-JIRA: update GitHub workflows to set UV_PROJECT dynamically
1 parent 9c75fa8 commit 968239c

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/code-quality.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/docs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)