Skip to content

Commit fa18a7c

Browse files
VIRTUAL_ENV for uv
1 parent 70f2836 commit fa18a7c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build_test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
uv venv islp
24-
source islp/bin/activate
24+
echo "VIRTUAL_ENV=$(pwd)/islp" >> $GITHUB_ENV
25+
echo "$(pwd)/islp/bin" >> $GITHUB_PATH
2526
uv pip install .
2627
- name: Lint with flake8
2728
run: |
@@ -55,7 +56,8 @@ jobs:
5556
- name: Install dependencies
5657
run: |
5758
uv venv islp
58-
source islp/bin/activate
59+
echo "VIRTUAL_ENV=$(pwd)/islp" >> $env:GITHUB_ENV
60+
echo "$(pwd)/islp/Scripts" >> $env:GITHUB_PATH
5961
uv pip install .
6062
- name: Lint with flake8
6163
run: |
@@ -88,6 +90,9 @@ jobs:
8890
uv-version: latest
8991
- name: Install dependencies
9092
run: |
93+
uv venv islp
94+
echo "VIRTUAL_ENV=$(pwd)/islp" >> $GITHUB_ENV
95+
echo "$(pwd)/islp/bin" >> $GITHUB_PATH
9196
uv pip install .
9297
- name: Lint with flake8
9398
run: |

0 commit comments

Comments
 (0)