Content-Length: 288094 | pFad | http://github.com/postgresml/postgresml/commit/507aaeb2de301a9a912d5bc6c3325f5d89609035

1A Fix Python dependencies in GitHub workflow · postgresml/postgresml@507aaeb · GitHub
Skip to content

Commit 507aaeb

Browse files
committed
Fix Python dependencies in GitHub workflow
Install the correct Python version for each target Ubuntu version: - Python 3.8 for Ubuntu 20.04 - Python 3.10 for Ubuntu 22.04 - Python 3.12 for Ubuntu 24.04 (via deadsnakes PPA)
1 parent 31c68e4 commit 507aaeb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ubuntu-packages-and-docker-image.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,23 @@ jobs:
2323
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
2424
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2525
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
26+
UBUNTU_VERSION: ${{ matrix.ubuntu_version }}
2627
run: |
2728
sudo apt update
2829
sudo apt install -y python3-dev python3-pip python3-virtualenv
30+
31+
# Install specific Python versions based on Ubuntu target
32+
if [[ "$UBUNTU_VERSION" == "20.04" ]]; then
33+
sudo apt install -y python3.8 python3.8-dev python3.8-venv
34+
elif [[ "$UBUNTU_VERSION" == "22.04" ]]; then
35+
sudo apt install -y python3.10 python3.10-dev python3.10-venv
36+
elif [[ "$UBUNTU_VERSION" == "24.04" ]]; then
37+
# Add deadsnakes PPA for Python 3.12 on Ubuntu 22.04
38+
sudo add-apt-repository -y ppa:deadsnakes/ppa
39+
sudo apt update
40+
sudo apt install -y python3.12 python3.12-dev python3.12-venv
41+
fi
42+
2943
bash packages/postgresml-python/release.sh ${{ inputs.packageVersion }} ${{ matrix.ubuntu_version }}
3044
3145
#

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/commit/507aaeb2de301a9a912d5bc6c3325f5d89609035

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy