Skip to content

Commit ab9cbb0

Browse files
committed
Update files with changes from repo-config v0.10.0
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 57362ae commit ab9cbb0

File tree

5 files changed

+41
-9
lines changed

5 files changed

+41
-9
lines changed

.github/containers/test-installation/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ RUN apt-get update -y && \
1313
python -m pip install --upgrade --no-cache-dir pip
1414

1515
COPY dist dist
16-
RUN pip install dist/*.whl && \
17-
rm -rf dist
16+
# This git-credentials file is made available by the GitHub ci.yaml workflow
17+
COPY git-credentials /root/.git-credentials
18+
RUN git config --global credential.helper store && \
19+
pip install dist/*.whl && \
20+
rm -rf dist /root/.git-credentials

.github/workflows/ci.yaml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
runs-on: ${{ matrix.os }}
4242

4343
steps:
44+
- name: Setup Git
45+
uses: frequenz-floss/[email protected]
46+
4447
- name: Print environment (debug)
4548
run: env
4649

@@ -119,6 +122,9 @@ jobs:
119122
runs-on: ${{ matrix.os }}
120123

121124
steps:
125+
- name: Setup Git
126+
uses: frequenz-floss/[email protected]
127+
122128
- name: Fetch sources
123129
uses: actions/checkout@v4
124130
with:
@@ -219,6 +225,9 @@ jobs:
219225
name: Build distribution packages
220226
runs-on: ubuntu-20.04
221227
steps:
228+
- name: Setup Git
229+
uses: frequenz-floss/[email protected]
230+
222231
- name: Fetch sources
223232
uses: actions/checkout@v4
224233
with:
@@ -251,17 +260,29 @@ jobs:
251260
needs: ["build"]
252261
runs-on: ubuntu-20.04
253262
steps:
263+
- name: Setup Git
264+
uses: frequenz-floss/[email protected]
265+
254266
- name: Fetch sources
255267
uses: actions/checkout@v4
268+
256269
- name: Download package
257270
uses: actions/download-artifact@v4
258271
with:
259272
name: dist-packages
260273
path: dist
274+
275+
- name: Make Git credentials available to docker
276+
run: |
277+
touch ~/.git-credentials # Ensure the file exists
278+
cp ~/.git-credentials git-credentials || true
279+
261280
- name: Set up QEMU
262281
uses: docker/setup-qemu-action@v3
282+
263283
- name: Set up docker-buildx
264284
uses: docker/setup-buildx-action@v3
285+
265286
- name: Test Installation
266287
uses: docker/build-push-action@v6
267288
with:
@@ -276,14 +297,14 @@ jobs:
276297
if: github.event_name != 'push'
277298
runs-on: ubuntu-20.04
278299
steps:
300+
- name: Setup Git
301+
uses: frequenz-floss/[email protected]
302+
279303
- name: Fetch sources
280304
uses: actions/checkout@v4
281305
with:
282306
submodules: true
283307

284-
- name: Setup Git user and e-mail
285-
uses: frequenz-floss/setup-git-user@v2
286-
287308
- name: Set up Python
288309
uses: actions/setup-python@v5
289310
with:
@@ -318,14 +339,14 @@ jobs:
318339
permissions:
319340
contents: write
320341
steps:
342+
- name: Setup Git
343+
uses: frequenz-floss/[email protected]
344+
321345
- name: Fetch sources
322346
uses: actions/checkout@v4
323347
with:
324348
submodules: true
325349

326-
- name: Setup Git user and e-mail
327-
uses: frequenz-floss/setup-git-user@v2
328-
329350
- name: Set up Python
330351
uses: actions/setup-python@v5
331352
with:

.github/workflows/release-notes-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
check-release-notes:
1818
name: Check release notes are updated
1919
runs-on: ubuntu-latest
20+
permissions:
21+
pull-requests: read
2022
steps:
2123
- name: Check for a release notes update
2224
if: github.event_name == 'pull_request'

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ plugins:
9393
- literate-nav:
9494
nav_file: SUMMARY.md
9595
- mike:
96-
alias_type: redirect
96+
alias_type: symlink
9797
canonical_version: latest
9898
- mkdocstrings:
9999
default_handler: python
@@ -111,6 +111,7 @@ plugins:
111111
show_signature_annotations: true
112112
show_source: true
113113
show_symbol_type_toc: true
114+
show_symbol_type_toc: true
114115
signature_crossrefs: true
115116
import:
116117
# See https://mkdocstrings.github.io/python/usage/#import for details

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ dev-mkdocs = [
5656
"mkdocs-macros-plugin == 1.0.5",
5757
"mkdocs-material == 9.5.31",
5858
"mkdocstrings[python] == 0.25.2",
59+
"mkdocstrings-python == 1.9.2",
5960
"frequenz-repo-config[lib] == 0.10.0",
6061
"frequenz-client-base",
6162
]
@@ -135,10 +136,14 @@ disable = [
135136
# pylint's unsubscriptable check is buggy and is not needed because
136137
# it is a type-check, for which we already have mypy.
137138
"unsubscriptable-object",
139+
# Checked by mypy
140+
"no-member",
138141
# Checked by flake8
142+
"f-string-without-interpolation",
139143
"redefined-outer-name",
140144
"unused-import",
141145
"line-too-long",
146+
"missing-function-docstring",
142147
"unused-variable",
143148
"unnecessary-lambda-assignment",
144149
# Checked by mypy

0 commit comments

Comments
 (0)