-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the installation of dependencies in the CI
- Loading branch information
1 parent
43af5b5
commit d6657cf
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
#/usr/bin/bash | ||
cd $HOME | ||
apt-get install curl libcurl4-openssl-dev | ||
apt-get install python3-fastapi python3-uvicorn | ||
apt-get install -y curl libcurl4-openssl-dev | ||
|
||
# Python dependencies | ||
python_deps="fastapi uvicorn httpx requests coverage" | ||
os_name=$(lsb_release -cs) | ||
|
||
case $os_name in | ||
jammy) # Ubuntu 22.04 | ||
pip install --user $python_deps | ||
;; | ||
kinetic) # Ubuntu 24.04 | ||
pip install --break-system-packages $python_deps | ||
;; | ||
*) # Newer | ||
pip install --break-system-packages $python_deps | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters