File tree Expand file tree Collapse file tree 2 files changed +139
-221
lines changed Expand file tree Collapse file tree 2 files changed +139
-221
lines changed Original file line number Diff line number Diff line change 1+ name : Test PR
2+
3+ on :
4+ pull_request :
5+
6+ env :
7+ # Please make sure this version is included in the `matrix`, as the
8+ # `matrix` section can't use `env`, so it must be entered manually
9+ DEFAULT_PYTHON_VERSION : ' 3.11'
10+ # It would be nice to be able to also define a DEFAULT_UBUNTU_VERSION
11+ # but sadly `env` can't be used either in `runs-on`.
12+
13+ jobs :
14+ nox :
15+ name : Test with nox
16+ runs-on : ubuntu-24.04
17+
18+ steps :
19+ - name : Run nox
20+ uses :
frequenz-floss/[email protected] 21+ with :
22+ python-version : " 3.11"
23+ nox-session : ci_checks_max
24+
25+ test-docs :
26+ name : Test documentation website generation
27+ runs-on : ubuntu-24.04
28+ steps :
29+ - name : Setup Git
30+ uses :
frequenz-floss/[email protected] 31+
32+ - name : Fetch sources
33+ uses : actions/checkout@v4
34+ with :
35+ submodules : true
36+
37+ - name : Setup Python
38+ uses :
frequenz-floss/[email protected] 39+ with :
40+ python-version : ${{ env.DEFAULT_PYTHON_VERSION }}
41+ dependencies : .[dev-mkdocs]
42+
43+ - name : Generate the documentation
44+ env :
45+ MIKE_VERSION : gh-${{ github.job }}
46+ run : |
47+ mike deploy $MIKE_VERSION
48+ mike set-default $MIKE_VERSION
49+
50+ - name : Upload site
51+ uses : actions/upload-artifact@v4
52+ with :
53+ name : docs-site
54+ path : site/
55+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments