Skip to content

Commit cccc1ef

Browse files
[CI] Install python deps in venv in macos job
the latest distros now do not allow global pip installation.
1 parent 4b1b5cb commit cccc1ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/basic.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,13 @@ jobs:
440440
with:
441441
fetch-depth: 0
442442

443-
- name: Install Python requirements
444-
run: python3 -m pip install -r third_party/requirements.txt
443+
# Latest distros do not allow global pip installation
444+
- name: Install Python requirements in venv
445+
run: |
446+
python3 -m venv .venv
447+
. .venv/bin/activate
448+
echo "$PATH" >> $GITHUB_PATH
449+
python3 -m pip install -r third_party/requirements.txt
445450
446451
- name: Install hwloc
447452
run: brew install hwloc jemalloc tbb

0 commit comments

Comments
 (0)