Skip to content

Commit 676e66b

Browse files
committed
ci: adjust python handling
1 parent ac06c36 commit 676e66b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/github-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ jobs:
3535
with:
3636
python-version: "3.12"
3737

38+
- name: Record original PATH
39+
id: record_original_path
40+
run: echo "PATH_ORIGINAL=$PATH" >> $GITHUB_OUTPUT
41+
3842
- name: Activate .venv
3943
run: |
4044
python3 -m pip install -r requirement-uv.txt
4145
uv sync --frozen --no-install-project
4246
. .venv/bin/activate
43-
echo PATH=$PATH >> $GITHUB_ENV
47+
echo PATH=${GITHUB_WORKSPACE}/.venv/bin:$PATH >> $GITHUB_ENV
4448
4549
- name: Build And Assemble
4650
run: |
@@ -57,7 +61,7 @@ jobs:
5761
if-no-files-found: "error"
5862

5963
- name: Deactivate .venv
60-
run: deactivate
64+
run: echo PATH=${{ steps.record_original_path.outputs.PATH_ORIGINAL }}
6165

6266
release:
6367
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)