Skip to content

Commit 7eeb6a7

Browse files
Try something
1 parent deda88a commit 7eeb6a7

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed
+3-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
#/usr/bin/bash
22
cd $HOME
3-
apt-get install -y curl libcurl4-openssl-dev
3+
apt-get install -y python3-full
44

55
# Python dependencies
66
python_deps="fastapi uvicorn httpx requests coverage python-multipart"
7-
os_name=$(lsb_release -cs)
8-
9-
case $os_name in
10-
jammy) # Ubuntu 22.04
11-
pip install --user $python_deps
12-
;;
13-
kinetic) # Ubuntu 24.04
14-
pip install --break-system-packages $python_deps
15-
;;
16-
*) # Newer
17-
pip install --break-system-packages $python_deps
18-
;;
19-
esac
7+
python3 -m venv my_env
8+
my_env/bin/pip install $python_deps

.github/script/source_env.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#/usr/bin/bash
2+
cd $HOME
3+
echo "export PYTHONPATH=$HOME/my_env/lib/python3.10/site-packages:$PYTHONPATH" >> $HOME/.bashrc
4+
cat $HOME/.bashrc

.github/workflows/industrial_ci_humble_action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
industrial_ci:
1313
env:
1414
BEFORE_BUILD_TARGET_WORKSPACE: '.github/script/install_dependencies.sh'
15+
BEFORE_RUN_TARGET_TEST: '.github/script/source_env.sh'
1516
strategy:
1617
fail-fast: false
1718
matrix:

0 commit comments

Comments
 (0)