Skip to content

Commit 3aceed1

Browse files
committed
add python setup action
1 parent 2b1ca59 commit 3aceed1

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/ci_cd.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444

4545
doc-build:
4646
name: Documentation building
47-
runs-on: public-ubuntu-latest-8-cores
47+
runs-on: ubuntu-22.04
4848
timeout-minutes: 60
4949
container:
50-
image: ghcr.io/ansys/mechanical:25.2.0
50+
image: ghcr.io/ansys/mechanical:26.1_Dev
5151
options: --entrypoint /bin/bash
5252
needs: [style, doc-style]
5353

@@ -57,19 +57,15 @@ jobs:
5757
uses: actions/checkout@v5
5858

5959
- name: Set up Python
60-
shell: bash
61-
run: |
62-
apt update
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
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6863
- name: Install Python requirements
6964
run: |
65+
python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
7066
. /env/bin/activate
71-
uv pip install --upgrade pip
72-
uv pip install -r requirements/requirements_doc.txt
67+
pip install --upgrade pip
68+
pip install -r requirements/requirements_doc.txt
7369
7470
- name: Build docs
7571
env:

0 commit comments

Comments
 (0)