Skip to content

Commit 8873349

Browse files
committed
Upgrade to repo-config 0.13.1
We update files using the migration script and we also exclude `frequenz-client-dispatch` from minor updates in dependabot as it is still at v0.x.x. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 0e6ac7f commit 8873349

File tree

4 files changed

+192
-231
lines changed

4 files changed

+192
-231
lines changed

.github/dependabot.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,44 @@ updates:
1313
versioning-strategy: auto
1414
# Allow up to 10 open pull requests for updates to dependency versions
1515
open-pull-requests-limit: 10
16-
# We group production and development ("optional" in the context of
17-
# pyproject.toml) dependency updates when they are patch and minor updates,
18-
# so we end up with less PRs being generated.
19-
# Major updates are still managed, but they'll create one PR per
20-
# dependency, as major updates are expected to be breaking, it is better to
21-
# manage them individually.
16+
# We group patch updates as they should always work.
17+
# We also group minor updates, as it works too for most libraries,
18+
# typically except libraries that don't have a stable release yet (v0.x.x
19+
# branch), so we make some exceptions for them.
20+
# Major updates and dependencies excluded by the above groups are still
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
24+
# usually need to be updated together.
2225
groups:
23-
required:
24-
dependency-type: "production"
26+
patch:
2527
update-types:
26-
- "minor"
2728
- "patch"
28-
optional:
29-
dependency-type: "development"
29+
exclude-patterns:
30+
# pydoclint has shipped breaking changes in patch updates often
31+
- "pydoclint"
32+
minor:
3033
update-types:
3134
- "minor"
32-
- "patch"
35+
exclude-patterns:
36+
- "async-solipsism"
37+
- "frequenz-client-dispatch"
38+
- "frequenz-repo-config*"
39+
- "markdown-callouts"
40+
- "mkdocs-gen-files"
41+
- "mkdocs-literate-nav"
42+
- "mkdocstrings*"
43+
- "pydoclint"
44+
- "pytest-asyncio"
45+
# We group repo-config updates as it uses optional dependencies that are
46+
# considered different dependencies otherwise, and will create one PR for
47+
# each if we don't group them.
48+
repo-config:
49+
patterns:
50+
- "frequenz-repo-config*"
51+
mkdocstrings:
52+
patterns:
53+
- "mkdocstrings*"
3354

3455
- package-ecosystem: "github-actions"
3556
directory: "/"

.github/workflows/ci-pr.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

0 commit comments

Comments
 (0)