File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ updates:
1818 # typically except libraries that don't have a stable release yet (v0.x.x
1919 # branch), so we make some exceptions for them.
2020 # Major updates and dependencies excluded by the above groups are still
21- # managed, but they'll create one PR per dependency, as breaking is
22- # expected so it might need manual intervention.
23- # Finally we group some dependencies that are related to each other, and
21+ # managed, but they'll create one PR per dependency, as breakage is
22+ # expected, so it might need manual intervention.
23+ # Finally, we group some dependencies that are related to each other, and
2424 # usually need to be updated together.
2525 groups :
2626 patch :
@@ -33,13 +33,15 @@ updates:
3333 update-types :
3434 - " minor"
3535 exclude-patterns :
36+ - " async-solipsism"
3637 - " frequenz-repo-config*"
3738 - " markdown-callouts"
3839 - " mkdocs-gen-files"
3940 - " mkdocs-literate-nav"
4041 - " mkdocstrings*"
4142 - " pydoclint"
4243 - " pymdownx-superfence-filter-lines"
44+ - " pytest-asyncio"
4345 # We group repo-config updates as it uses optional dependencies that are
4446 # considered different dependencies otherwise, and will create one PR for
4547 # each if we don't group them.
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/gh-action-nox@v1.0.0
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/gh-action-setup-git@v1.0.0
31+
32+ - name : Fetch sources
33+ uses : actions/checkout@v4
34+ with :
35+ submodules : true
36+
37+ - name : Setup Python
38+ uses : frequenz-floss/gh-action-setup-python-with-deps@v1.0.0
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