Skip to content

Commit dba7a78

Browse files
Merge branch 'v0.x.x' into update_metric_info
Signed-off-by: flora-hofmann-frequenz <[email protected]>
2 parents e9a348e + 8552b82 commit dba7a78

File tree

6 files changed

+68
-42
lines changed

6 files changed

+68
-42
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: 41 additions & 12 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

@@ -137,7 +147,7 @@ jobs:
137147
key: ${{ runner.os }}-buildx-nox-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}
138148

139149
- name: Build image
140-
uses: docker/build-push-action@v5
150+
uses: docker/build-push-action@v6
141151
with:
142152
context: .github/containers/nox-cross-arch
143153
file: .github/containers/nox-cross-arch/${{ matrix.arch }}-${{ matrix.os }}-python-${{ matrix.python }}.Dockerfile
@@ -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,19 +258,31 @@ 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
256-
uses: docker/build-push-action@v5
285+
uses: docker/build-push-action@v6
257286
with:
258287
context: .
259288
file: .github/containers/test-installation/Dockerfile
@@ -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:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Check for a release notes update
2222
if: github.event_name == 'pull_request'
23-
uses: brettcannon/check-for-changed-files@4170644959a21843b31f1181f2a1761d65ef4791 # v1.2.0
23+
uses: brettcannon/check-for-changed-files@871d7b8b5917a4f6f06662e2262e8ffc51dff6d1 # v1.2.1
2424
with:
2525
# TODO(cookiecutter): Uncomment the following line for private repositories, otherwise remove it and remove it
2626
# token: ${{ secrets.github_token }}

RELEASE_NOTES.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,12 @@
66

77
## Upgrading
88

9-
<<<<<<< HEAD
10-
* Upgrading metric `__init__` to names from api-common release [v0.6.0](https://github.com/frequenz-floss/frequenz-api-common/releases/tag/v0.6.0)
11-
12-
## New Features
13-
14-
<!-- Here goes the main new features and examples or instructions on how to use them -->
15-
=======
169
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
1710

1811
## New Features
1912

2013
* Additional information for energy metric
21-
>>>>>>> fd64a93 (Add additional info to inform energy metric users)
2214

2315
## Bug Fixes
2416

2517
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
26-
<<<<<<< HEAD
27-
=======
28-
29-
>>>>>>> fd64a93 (Add additional info to inform energy metric users)

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: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
requires = [
66
"setuptools == 68.1.0",
77
"setuptools_scm[toml] == 7.1.0",
8-
"frequenz-repo-config[lib] == 0.9.1",
8+
"frequenz-repo-config[lib] == 0.10.0",
99
]
1010
build-backend = "setuptools.build_meta"
1111

@@ -27,7 +27,7 @@ classifiers = [
2727
requires-python = ">= 3.11, < 4"
2828
dependencies = [
2929
"typing-extensions >= 4.5.0, < 5",
30-
"frequenz-api-common >= 0.5.4, < 6",
30+
"frequenz-api-common >= 0.6.0, < 7",
3131
]
3232
dynamic = ["version"]
3333

@@ -37,44 +37,45 @@ email = "[email protected]"
3737

3838
[project.optional-dependencies]
3939
dev-flake8 = [
40-
"flake8 == 7.0.0",
40+
"flake8 == 7.1.0",
4141
"flake8-docstrings == 1.7.0",
4242
"flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
43-
"pydoclint == 0.4.1",
43+
"pydoclint == 0.5.6",
4444
"pydocstyle == 6.3.0",
4545
]
4646
dev-formatting = ["black == 24.4.2", "isort == 5.13.2"]
4747
dev-mkdocs = [
4848
"black == 24.4.2",
4949
"Markdown==3.6",
50-
"mike == 2.0.0",
50+
"mike == 2.1.2",
5151
"mkdocs-gen-files == 0.5.0",
5252
"mkdocs-literate-nav == 0.6.1",
5353
"mkdocs-macros-plugin == 1.0.5",
54-
"mkdocs-material == 9.5.20",
55-
"mkdocstrings[python] == 0.25.0",
56-
"frequenz-repo-config[lib] == 0.9.1",
54+
"mkdocs-material == 9.5.30",
55+
"mkdocstrings[python] == 0.25.2",
56+
"mkdocstrings-python == 1.9.2",
57+
"frequenz-repo-config[lib] == 0.10.0",
5758
]
5859
dev-mypy = [
59-
"mypy == 1.10.0",
60+
"mypy == 1.11.1",
6061
"types-Markdown == 3.6.0.20240316",
6162
# For checking the noxfile, docs/ script, and tests
6263
"frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]",
6364
]
6465
dev-noxfile = [
6566
"nox == 2024.4.15",
66-
"frequenz-repo-config[lib] == 0.9.1",
67+
"frequenz-repo-config[lib] == 0.10.0",
6768
]
6869
dev-pylint = [
69-
"pylint == 3.1.0",
70+
"pylint == 3.2.6",
7071
# For checking the noxfile, docs/ script, and tests
7172
"frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]",
7273
]
7374
dev-pytest = [
74-
"pytest == 8.2.0",
75-
"frequenz-repo-config[extra-lint-examples] == 0.9.1",
75+
"pytest == 8.3.2",
76+
"frequenz-repo-config[extra-lint-examples] == 0.10.0",
7677
"pytest-mock == 3.14.0",
77-
"pytest-asyncio == 0.23.6",
78+
"pytest-asyncio == 0.23.8",
7879
"async-solipsism == 0.6",
7980
]
8081
dev = [
@@ -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)