Skip to content

Commit 93e147e

Browse files
[UR][CI] Install python deps in venv (#17463)
Latest distros don't allow global pip installations.
1 parent fa39fa2 commit 93e147e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/sycl-detect-changes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
- 'sycl/test-e2e/(ESIMD|InvokeSimd)/**'
7575
ur:
7676
- 'unified-runtime/**'
77+
- .github/workflows/ur-*
7778
7879
- name: Set output
7980
id: result

.github/workflows/ur-build-hw.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,14 @@ jobs:
9494
- name: Checkout LLVM
9595
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9696

97-
- name: Install UR python dependencies
97+
# Latest distros do not allow global pip installation
98+
- name: Install UR python dependencies in venv
9899
working-directory: ${{github.workspace}}/unified-runtime
99-
run: pip install -r third_party/requirements.txt
100+
run: |
101+
python3 -m venv .venv
102+
. .venv/bin/activate
103+
echo "$PATH" >> $GITHUB_PATH
104+
pip install -r third_party/requirements.txt
100105
101106
- name: Download DPC++
102107
run: |

0 commit comments

Comments
 (0)