File tree Expand file tree Collapse file tree 5 files changed +44
-16
lines changed Expand file tree Collapse file tree 5 files changed +44
-16
lines changed Original file line number Diff line number Diff line change 29
29
sudo apt-get update
30
30
sudo apt-get install -y doxygen
31
31
32
- - name : Install pip requirements
33
- run : python3 -m pip install -r third_party/requirements.txt
32
+ # Latest distros do not allow global pip installation
33
+ - name : Install Python requirements in venv
34
+ run : |
35
+ python3 -m venv .venv
36
+ . .venv/bin/activate
37
+ echo "$PATH" >> $GITHUB_PATH
38
+ python3 -m pip install -r third_party/requirements.txt
34
39
35
40
- name : Setup PATH for python
36
41
run : echo "$HOME/.local/bin" >> $GITHUB_PATH
Original file line number Diff line number Diff line change 22
22
run : |
23
23
sudo apt-get update
24
24
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev
25
+
26
+ # Latest distros do not allow global pip installation
27
+ - name : Install Python requirements in venv
28
+ run : |
29
+ python3 -m venv .venv
30
+ . .venv/bin/activate
31
+ echo "$PATH" >> $GITHUB_PATH
25
32
python3 -m pip install bandit
26
33
27
34
- name : Configure CMake
Original file line number Diff line number Diff line change @@ -45,26 +45,33 @@ jobs:
45
45
languages : cpp
46
46
47
47
- name : Initialize vcpkg
48
- if : ${{ matrix.os == 'windows-latest' }}
48
+ if : matrix.os == 'windows-latest'
49
49
uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
50
50
with :
51
51
vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
52
52
vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
53
53
vcpkgJsonGlob : ' **/vcpkg.json'
54
54
55
- - name : Install dependencies
56
- if : ${{ matrix.os == 'windows-latest' }}
57
- run : vcpkg install
58
- shell : pwsh # Specifies PowerShell as the shell for running the script.
55
+ - name : " [Win] Install dependencies"
56
+ if : matrix.os == 'windows-latest'
57
+ run : |
58
+ vcpkg install
59
+ python3 -m pip install -r third_party/requirements.txt
59
60
60
- - name : Install apt packages
61
+ - name : " [Lin] Install apt packages"
61
62
if : matrix.os == 'ubuntu-latest'
62
63
run : |
63
64
sudo apt-get update
64
65
sudo apt-get install -y cmake clang libhwloc-dev libnuma-dev libjemalloc-dev libtbb-dev
65
66
66
- - name : Install pip packages
67
- run : python3 -m pip install -r third_party/requirements.txt
67
+ # Latest distros do not allow global pip installation
68
+ - name : " [Lin] Install Python requirements in venv"
69
+ if : matrix.os == 'ubuntu-latest'
70
+ run : |
71
+ python3 -m venv .venv
72
+ . .venv/bin/activate
73
+ echo "$PATH" >> $GITHUB_PATH
74
+ python3 -m pip install -r third_party/requirements.txt
68
75
69
76
- name : Configure CMake
70
77
run : >
Original file line number Diff line number Diff line change @@ -21,11 +21,13 @@ jobs:
21
21
sudo apt-get update
22
22
sudo apt-get install -y doxygen
23
23
24
- - name : Install pip requirements
25
- run : python3 -m pip install -r third_party/requirements.txt
26
-
27
- - name : Setup PATH for python
28
- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
24
+ # Latest distros do not allow global pip installation
25
+ - name : Install Python requirements in venv
26
+ run : |
27
+ python3 -m venv .venv
28
+ . .venv/bin/activate
29
+ echo "$PATH" >> $GITHUB_PATH
30
+ python3 -m pip install -r third_party/requirements.txt
29
31
30
32
- name : Build the documentation
31
33
working-directory : scripts
Original file line number Diff line number Diff line change 29
29
sudo apt-get update
30
30
sudo apt-get install -y qemu-system genisoimage qemu-utils \
31
31
libvirt-clients libvirt-daemon-system libvirt-daemon virtinst bridge-utils
32
- pip install -r umf/scripts/qemu/requirements.txt
32
+
33
+ # Latest distros do not allow global pip installation
34
+ - name : Install Python requirements in venv
35
+ run : |
36
+ python3 -m venv .venv
37
+ . .venv/bin/activate
38
+ echo "$PATH" >> $GITHUB_PATH
39
+ python3 -m pip install -r umf/scripts/qemu/requirements.txt
33
40
34
41
- name : Add user to kvm group
35
42
run : sudo usermod -a -G kvm,libvirt $USER
You can’t perform that action at this time.
0 commit comments