Skip to content

Commit 705a8b4

Browse files
committed
add uv python
1 parent ae66bf7 commit 705a8b4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
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:

0 commit comments

Comments
 (0)