Skip to content

Commit 77c0544

Browse files
committed
fix: Use astral-sh/setup-uv action to avoid install conflicts
1 parent 67a1dfb commit 77c0544

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/feelpp-env.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ jobs:
7070
- uses: actions/checkout@v5
7171
with:
7272
submodules: recursive
73+
- name: Setup uv
74+
uses: astral-sh/setup-uv@v5
75+
with:
76+
enable-cache: true
7377
- name: Setup Python factory
7478
run: |
7579
if [ -f "feelpp-env/factory.sh" ]; then
7680
echo "Setting up Python factory environment..."
77-
curl -LsSf https://astral.sh/uv/install.sh | sh
78-
export PATH="$HOME/.local/bin:$PATH"
7981
cd feelpp-env
8082
uv venv .venv
8183
source .venv/bin/activate
@@ -135,12 +137,14 @@ jobs:
135137
- uses: actions/checkout@v5
136138
with:
137139
submodules: recursive
140+
- name: Setup uv
141+
uses: astral-sh/setup-uv@v5
142+
with:
143+
enable-cache: true
138144
- name: Setup Python factory
139145
run: |
140146
if [ -f "feelpp-env/factory.sh" ]; then
141147
echo "Setting up Python factory environment..."
142-
curl -LsSf https://astral.sh/uv/install.sh | sh
143-
export PATH="$HOME/.local/bin:$PATH"
144148
cd feelpp-env
145149
uv venv .venv
146150
source .venv/bin/activate

0 commit comments

Comments
 (0)