Add system install test for CentOS (#2402)

Similar to #2403
This commit is contained in:
Zanie Blue 2024-03-13 10:37:26 -05:00 committed by GitHub
parent cca9de13e2
commit 94f94ba916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,6 +244,35 @@ jobs:
- name: "Validate global Python install"
run: python scripts/check_system_python.py --uv ./uv
system-test-centos:
needs: build-binary-linux
name: "check system | python on centos"
runs-on: ubuntu-latest
container: centos:8
steps:
- uses: actions/checkout@v4
- name: "Install Python"
run: |
# Add CentOS stream repositories, you cannot install from the EOL CentOS 8 mirrors
dnf -y --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
# `python` gives you `python3.6` which we do not support
dnf install python39 python39-pip which -y
- name: "Download binary"
uses: actions/download-artifact@v4
with:
name: uv-linux-${{ github.sha }}
- name: "Prepare binary"
run: chmod +x ./uv
- name: "Print Python path"
run: echo $(which python3)
- name: "Validate global Python install"
run: python3 scripts/check_system_python.py --uv ./uv
system-test-pypy:
needs: build-binary-linux
name: "check system | pypy on ubuntu"
@ -492,7 +521,6 @@ jobs:
# Needed for `actions/checkout`
yum install tar gzip which -y
- uses: actions/checkout@v4
- name: "Install Python"
run: yum install python3 python3-pip -y