Skip to content

Commit

Permalink
distrosgit diff
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 21, 2024
1 parent 3036629 commit 687d247
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/distro_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "debian", "archlinux", "fedora", "gentoo/python", "python:3.10-alpine"]
os: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "debian", "archlinux", "fedora", "gentoo/python", "python:3.10-alpine", "kalilinux/kali-rolling", "parrotsec/parrot", "archlinux/archlinux"]
steps:
- uses: actions/checkout@v4
- name: Install Python and Poetry
run: |
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" = "ubuntu" -o "$ID" = "debian" ]; then
if [ "$ID" = "ubuntu" ]; then
# Add deadsnakes PPA for Python 3.12
apt-get update
apt-get install -y software-properties-common
apt-get install -y software-properties-common curl
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install -y python3.12 python3.12-venv python3.12-distutils
Expand All @@ -36,18 +36,21 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install pipx
elif [ "$ID" = "alpine" ]; then
apk add --no-cache bash python3 py3-pip
apk add --no-cache bash python3 py3-pip gcc musl-dev libffi-dev
python3 -m pip install --upgrade pip
python3 -m pip install pipx
elif [ "$ID" = "arch" ]; then
elif [ "$ID" = "arch" -o "$ID" = "archlinux" ]; then
pacman -Syu --noconfirm python python-pip python-pipx
elif [ "$ID" = "fedora" ]; then
dnf install -y python3 python3-pip pipx poetry
elif [ "$ID" = "gentoo" ]; then
# Initialize and sync Gentoo repository
emerge-webrsync
emerge --sync
emerge --update --newuse dev-lang/python dev-python/pipx
emerge --update --newuse dev-lang/python dev-python/pipx poetry
elif [ "$ID" = "kali" -o "$ID" = "parrot" -o "$ID" = "debian" ]; then
apt-get update
apt-get install -y python3 python3-pip pipx
else
echo "Unsupported Linux distribution"
exit 1
Expand Down

0 comments on commit 687d247

Please sign in to comment.