File tree Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,14 @@ defaults:
55 run :
66 shell : bash
77
8+ env :
9+ UV_COMPILE_BYTECODE : 1
10+
811on : # 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-
1716jobs :
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
Original file line number Diff line number Diff 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
118env :
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
1413jobs :
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
You can’t perform that action at this time.
0 commit comments