Skip to content

Commit b8aad58

Browse files
committed
Run migration script to upgrade to repo-config 0.10.0
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 87f5cff commit b8aad58

File tree

4 files changed

+51
-13
lines changed

4 files changed

+51
-13
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: 39 additions & 10 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

@@ -88,10 +91,14 @@ jobs:
8891
# The job name should match the name of the `nox` job.
8992
name: Test with nox
9093
needs: ["nox"]
94+
# We skip this job only if nox was also skipped
95+
if: always() && needs.nox.result != 'skipped'
9196
runs-on: ubuntu-20.04
97+
env:
98+
DEPS_RESULT: ${{ needs.nox.result }}
9299
steps:
93-
- name: Return true
94-
run: "true"
100+
- name: Check matrix job result
101+
run: test "$DEPS_RESULT" = "success"
95102

96103
nox-cross-arch:
97104
name: Cross-arch tests with nox
@@ -115,6 +122,9 @@ jobs:
115122
runs-on: ${{ matrix.os }}
116123

117124
steps:
125+
- name: Setup Git
126+
uses: frequenz-floss/[email protected]
127+
118128
- name: Fetch sources
119129
uses: actions/checkout@v4
120130

@@ -200,15 +210,22 @@ jobs:
200210
# The job name should match the name of the `nox-cross-arch` job.
201211
name: Cross-arch tests with nox
202212
needs: ["nox-cross-arch"]
213+
# We skip this job only if nox-cross-arch was also skipped
214+
if: always() && needs.nox-cross-arch.result != 'skipped'
203215
runs-on: ubuntu-20.04
216+
env:
217+
DEPS_RESULT: ${{ needs.nox-cross-arch.result }}
204218
steps:
205-
- name: Return true
206-
run: "true"
219+
- name: Check matrix job result
220+
run: test "$DEPS_RESULT" = "success"
207221

208222
build:
209223
name: Build distribution packages
210224
runs-on: ubuntu-20.04
211225
steps:
226+
- name: Setup Git
227+
uses: frequenz-floss/[email protected]
228+
212229
- name: Fetch sources
213230
uses: actions/checkout@v4
214231
with:
@@ -241,17 +258,29 @@ jobs:
241258
needs: ["build"]
242259
runs-on: ubuntu-20.04
243260
steps:
261+
- name: Setup Git
262+
uses: frequenz-floss/[email protected]
263+
244264
- name: Fetch sources
245265
uses: actions/checkout@v4
266+
246267
- name: Download package
247268
uses: actions/download-artifact@v4
248269
with:
249270
name: dist-packages
250271
path: dist
272+
273+
- name: Make Git credentials available to docker
274+
run: |
275+
touch ~/.git-credentials # Ensure the file exists
276+
cp ~/.git-credentials git-credentials || true
277+
251278
- name: Set up QEMU
252279
uses: docker/setup-qemu-action@v3
280+
253281
- name: Set up docker-buildx
254282
uses: docker/setup-buildx-action@v3
283+
255284
- name: Test Installation
256285
uses: docker/build-push-action@v6
257286
with:
@@ -266,14 +295,14 @@ jobs:
266295
if: github.event_name != 'push'
267296
runs-on: ubuntu-20.04
268297
steps:
298+
- name: Setup Git
299+
uses: frequenz-floss/[email protected]
300+
269301
- name: Fetch sources
270302
uses: actions/checkout@v4
271303
with:
272304
submodules: true
273305

274-
- name: Setup Git user and e-mail
275-
uses: frequenz-floss/setup-git-user@v2
276-
277306
- name: Set up Python
278307
uses: actions/setup-python@v5
279308
with:
@@ -308,14 +337,14 @@ jobs:
308337
permissions:
309338
contents: write
310339
steps:
340+
- name: Setup Git
341+
uses: frequenz-floss/[email protected]
342+
311343
- name: Fetch sources
312344
uses: actions/checkout@v4
313345
with:
314346
submodules: true
315347

316-
- name: Setup Git user and e-mail
317-
uses: frequenz-floss/setup-git-user@v2
318-
319348
- name: Set up Python
320349
uses: actions/setup-python@v5
321350
with:

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ plugins:
9797
- literate-nav:
9898
nav_file: SUMMARY.md
9999
- mike:
100-
alias_type: redirect
100+
alias_type: symlink
101101
canonical_version: latest
102102
- mkdocstrings:
103103
default_handler: python
@@ -114,6 +114,7 @@ plugins:
114114
show_root_members_full_path: true
115115
show_signature_annotations: true
116116
show_source: true
117+
show_symbol_type_toc: true
117118
signature_crossrefs: true
118119
import:
119120
# TODO(cookiecutter): You might want to add other external references here

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dev-mkdocs = [
5353
"mkdocs-macros-plugin == 1.0.5",
5454
"mkdocs-material == 9.5.30",
5555
"mkdocstrings[python] == 0.25.2",
56+
"mkdocstrings-python == 1.9.2",
5657
"frequenz-repo-config[lib] == 0.10.0",
5758
]
5859
dev-mypy = [
@@ -131,10 +132,14 @@ disable = [
131132
# pylint's unsubscriptable check is buggy and is not needed because
132133
# it is a type-check, for which we already have mypy.
133134
"unsubscriptable-object",
135+
# Checked by mypy
136+
"no-member",
134137
# Checked by flake8
138+
"f-string-without-interpolation",
135139
"redefined-outer-name",
136140
"unused-import",
137141
"line-too-long",
142+
"missing-function-docstring",
138143
"unused-variable",
139144
"unnecessary-lambda-assignment",
140145
]

0 commit comments

Comments
 (0)