From 94f94ba91620554f2b360aacd28b2acb6d6cb822 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 13 Mar 2024 10:37:26 -0500 Subject: [PATCH] Add system install test for CentOS (#2402) Similar to #2403 --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77742b40bfc4..13bd576b64f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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