Skip to content

Commit 09e57f2

Browse files
committed
fix: move UV_NO_SOURCES to job level to apply to all steps
1 parent 91458b4 commit 09e57f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- { os: ubuntu-latest, py: "3.11" }
2222
- { os: ubuntu-latest, py: "3.12" }
2323

24+
env:
25+
UV_NO_SOURCES: "1"
26+
2427
steps:
2528
- name: CHECKOUT CODE
2629
uses: actions/checkout@v4
@@ -50,8 +53,6 @@ jobs:
5053
# 针对 PyTorch Geometric 编译问题的解决方案
5154
uv pip uninstall torch-scatter torch-sparse torch-cluster -y || true
5255
uv pip install torch-geometric
53-
env:
54-
UV_NO_SOURCES: "1"
5556
5657
# - name: Create hydro_setting.yml directly in workflow
5758
# run: |

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
deploy:
88
runs-on: ubuntu-latest
9+
env:
10+
UV_NO_SOURCES: "1"
911
steps:
1012
- name: Checkout code
1113
uses: actions/checkout@v4
@@ -26,8 +28,6 @@ jobs:
2628
2729
# Install documentation dependencies
2830
uv pip install mkdocs-material mkdocstrings mkdocs-git-revision-date-plugin mkdocs-jupyter ipykernel
29-
env:
30-
UV_NO_SOURCES: "1"
3131
3232
- name: Run tests
3333
run: |

0 commit comments

Comments
 (0)