Skip to content

Commit

Permalink
Install python based on distro
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Oct 28, 2023
1 parent c2329f7 commit 750847a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ jobs:
image: ${{ matrix.distro }}
steps:
- name: Install essentials
run: apk add python3
run: |
if [ "${{ matrix.distro }}" = "alpine:latest" ]; then
apk add python3
elif [ "${{ matrix.distro }}" = "archlinux:latest" ]; then
pacman -S python
else
apt-get update
apt-get install --yes --no-install-recommends python3-minimal
fi
- name: Check out repository code
uses: actions/checkout@v4
Expand Down

0 comments on commit 750847a

Please sign in to comment.