Skip to content

Commit f21a20f

Browse files
committed
Update files based on repo-config v0.10 templates
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 82c3020 commit f21a20f

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 28 additions & 4 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,24 @@ 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+
251273
- name: Set up QEMU
252274
uses: docker/setup-qemu-action@v3
275+
253276
- name: Set up docker-buildx
254277
uses: docker/setup-buildx-action@v3
278+
255279
- name: Test Installation
256280
uses: docker/build-push-action@v6
257281
with:

mkdocs.yml

Lines changed: 1 addition & 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

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,14 @@ disable = [
139139
# pylint's unsubscriptable check is buggy and is not needed because
140140
# it is a type-check, for which we already have mypy.
141141
"unsubscriptable-object",
142+
# Checked by mypy
143+
"no-member",
142144
# Checked by flake8
145+
"f-string-without-interpolation",
143146
"redefined-outer-name",
144147
"unused-import",
145148
"line-too-long",
149+
"missing-function-docstring",
146150
"unused-variable",
147151
"unnecessary-lambda-assignment",
148152
]

0 commit comments

Comments
 (0)