Skip to content

Commit f77b762

Browse files
author
Aliaksandr Adziareika
committed
Check available i386 python versions in deadsnakes PPA
1 parent 6260220 commit f77b762

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/test-python-setup.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,33 @@ jobs:
1919
sudo dpkg --add-architecture i386
2020
sudo apt-get update
2121
22-
- name: Search for python i386 packages
22+
- name: Search for python i386 packages (default repos)
2323
run: |
24-
echo "=== Available python3:i386 packages ==="
25-
apt-cache search python3 | grep i386 || echo "No i386 packages found via search"
26-
27-
echo "=== Check python versions availability ==="
24+
echo "=== Check python versions availability (default repos) ==="
2825
for ver in 3.8 3.9 3.10 3.11 3.12 3.13 3.14; do
2926
echo "--- python${ver}:i386 ---"
30-
apt-cache show python${ver}:i386 2>&1 | head -5 || echo "python${ver}:i386 not available"
27+
apt-cache show python${ver}:i386 2>&1 | head -3 || echo "not available"
3128
done
3229
33-
echo "=== Check python3:i386 (default) ==="
34-
apt-cache show python3:i386 2>&1 | head -10 || echo "python3:i386 not available"
30+
- name: Add deadsnakes PPA
31+
run: |
32+
sudo apt-get install -y software-properties-common
33+
sudo add-apt-repository -y ppa:deadsnakes/ppa
34+
sudo apt-get update
35+
36+
- name: Search for python i386 packages (with deadsnakes PPA)
37+
run: |
38+
echo "=== Check python versions availability (with deadsnakes PPA) ==="
39+
for ver in 3.8 3.9 3.10 3.11 3.12 3.13 3.14; do
40+
echo "--- python${ver}:i386 ---"
41+
apt-cache show python${ver}:i386 2>&1 | head -3 || echo "not available"
42+
done
3543
36-
echo "=== Check python3-dev:i386 availability ==="
37-
apt-cache show python3-dev:i386 2>&1 | head -10 || echo "python3-dev:i386 not available"
44+
echo "=== Check python3-dev versions ==="
45+
for ver in 3.8 3.9 3.10 3.11 3.12 3.13 3.14; do
46+
echo "--- python${ver}-dev:i386 ---"
47+
apt-cache show python${ver}-dev:i386 2>&1 | head -3 || echo "not available"
48+
done
3849
3950
- name: Try to install python3:i386
4051
run: |

0 commit comments

Comments
 (0)