Skip to content

Commit

Permalink
Add system install test for CentOS (#2402)
Browse files Browse the repository at this point in the history
Similar to #2403
  • Loading branch information
zanieb authored Mar 13, 2024
1 parent cca9de1 commit 94f94ba
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 94f94ba

Please sign in to comment.