File tree 5 files changed +35
-8
lines changed
5 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 27
27
with :
28
28
fetch-depth : 0
29
29
30
+ # Latest distros do not allow global pip installation
30
31
- name : Install Bandit
31
- run : python3 -m pip install bandit
32
+ run : |
33
+ python3 -m venv .venv
34
+ . .venv/bin/activate
35
+ echo "$PATH" >> $GITHUB_PATH
36
+ python3 -m pip install bandit
32
37
33
38
# Run Bandit recursively, but omit _deps directory (with 3rd party code)
34
39
- name : Run Bandit
Original file line number Diff line number Diff line change 75
75
sudo apt-get update
76
76
sudo apt-get install -y cmake clang libhwloc-dev libnuma-dev libjemalloc-dev libtbb-dev
77
77
78
- - name : Install pip packages
79
- run : python3 -m pip install -r third_party/requirements.txt
78
+ # Latest distros do not allow global pip installation
79
+ - name : Install Python requirements in venv
80
+ run : |
81
+ python3 -m venv .venv
82
+ . .venv/bin/activate
83
+ echo "$PATH" >> $GITHUB_PATH
84
+ python3 -m pip install -r third_party/requirements.txt
80
85
81
86
- name : Configure CMake
82
87
run : >
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 66
66
sudo apt-get update
67
67
sudo apt-get install -y doxygen
68
68
69
- - name : Install pip requirements
70
- run : python3 -m pip install -r third_party/requirements.txt
69
+ # Latest distros do not allow global pip installation
70
+ - name : Install Python requirements in venv
71
+ run : |
72
+ python3 -m venv .venv
73
+ . .venv/bin/activate
74
+ echo "$PATH" >> $GITHUB_PATH
75
+ python3 -m pip install -r third_party/requirements.txt
71
76
72
77
- name : Setup PATH for python
73
78
run : echo "$HOME/.local/bin" >> $GITHUB_PATH
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