Skip to content

Commit 6f933ac

Browse files
committed
add uv python
1 parent ae66bf7 commit 6f933ac

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

.github/workflows/ci_cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ jobs:
5757
uses: actions/checkout@v5
5858

5959
- name: Set up Python
60+
shell: bash
6061
run: |
6162
apt update
62-
apt install --reinstall ca-certificates
63-
apt install lsb-release xvfb software-properties-common make -y
64-
add-apt-repository ppa:deadsnakes/ppa -y
65-
apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
66-
python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
67-
63+
apt install lsb-release xvfb git curl make -y
64+
curl -LsSf https://astral.sh/uv/install.sh | sh
65+
export PATH="$HOME/.local/bin:$PATH"
66+
uv python install python${{ env.MAIN_PYTHON_VERSION }}
67+
uv venv /env
6868
- name: Install Python requirements
6969
run: |
7070
. /env/bin/activate
71-
pip install --upgrade pip
72-
pip install -r requirements/requirements_doc.txt
71+
uv pip install --upgrade pip
72+
uv pip install -r requirements/requirements_doc.txt
7373
7474
- name: Build docs
7575
env:

.github/workflows/ci_cd_nightly.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,16 @@ jobs:
8282
- name: Set up Python
8383
run: |
8484
apt update
85-
apt install --reinstall ca-certificates
86-
apt install lsb-release xvfb software-properties-common make -y
87-
add-apt-repository ppa:deadsnakes/ppa -y
88-
apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
89-
python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
90-
85+
apt install lsb-release xvfb git curl make -y
86+
curl -LsSf https://astral.sh/uv/install.sh | sh
87+
export PATH="$HOME/.local/bin:$PATH"
88+
uv python install python${{ env.MAIN_PYTHON_VERSION }}
89+
uv venv /env
9190
- name: Install Python requirements
9291
run: |
9392
. /env/bin/activate
94-
pip install --upgrade pip
95-
pip install -r requirements/requirements_doc.txt
93+
uv pip install --upgrade pip
94+
uv pip install -r requirements/requirements_doc.txt
9695
9796
- name: Build docs
9897
env:

0 commit comments

Comments
 (0)