Skip to content

Commit 39ab290

Browse files
authored
Update workflows (#189)
1 parent d9f605b commit 39ab290

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

.github/workflows/documentation.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ defaults:
55
run:
66
shell: bash
77

8+
env:
9+
UV_COMPILE_BYTECODE: 1
10+
811
on: # Runs on any push event to master
912
push:
1013
branches:
1114
- master
1215

13-
# We use uv pip and it should use the system python from our runner
14-
env:
15-
UV_SYSTEM_PYTHON: 1
16-
1716
jobs:
1817
documentation:
1918
name: Build and Publish Static Documentation
@@ -22,22 +21,19 @@ jobs:
2221
steps:
2322
- uses: actions/checkout@v4
2423

25-
- name: Install uv
26-
uses: astral-sh/setup-uv@v5
24+
- name: Install uv and Python
25+
uses: astral-sh/setup-uv@v6
2726
with:
27+
python-version: 3.13
2828
enable-cache: true
29+
activate-environment: true
2930
cache-dependency-glob: "requirements.txt"
3031

31-
- name: Set up Python
32-
uses: actions/setup-python@v5
33-
with:
34-
python-version: 3.13
35-
3632
- name: Install dependencies
3733
run: uv pip install -r requirements.txt
3834

3935
- name: Build documentation
40-
run: uv run python -m mkdocs build -d ./doc_build
36+
run: python -m mkdocs build -d ./doc_build
4137

4238
- name: Upload documentation to gh-pages
4339
uses: JamesIves/github-pages-deploy-action@v4

.github/workflows/test_build.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ defaults:
55
run:
66
shell: bash
77

8-
on: [push, pull_request] # Runs on all push events to any branch
9-
10-
# We use uv pip and it should use the system python from our runner
118
env:
12-
UV_SYSTEM_PYTHON: 1
9+
UV_COMPILE_BYTECODE: 1
10+
11+
on: [push, pull_request] # Runs on all push events to any branch
1312

1413
jobs:
1514
documentation:
@@ -19,22 +18,19 @@ jobs:
1918
steps:
2019
- uses: actions/checkout@v4
2120

22-
- name: Install uv
23-
uses: astral-sh/setup-uv@v5
21+
- name: Install uv and Python
22+
uses: astral-sh/setup-uv@v6
2423
with:
24+
python-version: 3.13
2525
enable-cache: true
26+
activate-environment: true
2627
cache-dependency-glob: "requirements.txt"
2728

28-
- name: Set up Python
29-
uses: actions/setup-python@v5
30-
with:
31-
python-version: 3.13
32-
3329
- name: Install dependencies
3430
run: uv pip install -r requirements.txt
3531

3632
- name: Build documentation
37-
run: uv run python -m mkdocs build -d ./doc_build
33+
run: python -m mkdocs build -d ./doc_build
3834

3935
# Upload artifacts if in PR so reviewers can have a quick look without building documentation from the branch locally
4036
- name: Upload build artifacts

0 commit comments

Comments
 (0)