From 918fc051be2a15a1dbafe909951721ecbee02ab0 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 3 Oct 2024 10:48:36 +0200 Subject: [PATCH] Update files based on repo-config v0.10 templates Signed-off-by: Leandro Lucarella --- .github/workflows/ci.yaml | 18 ++++++++++++++++-- pyproject.toml | 6 +++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eaaf075..1abec92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,9 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Print environment (debug) run: env @@ -119,10 +122,11 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 - with: - submodules: true - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -219,6 +223,9 @@ jobs: name: Build distribution packages runs-on: ubuntu-20.04 steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 with: @@ -251,17 +258,24 @@ jobs: needs: ["build"] runs-on: ubuntu-20.04 steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 + - name: Download package uses: actions/download-artifact@v4 with: name: dist-packages path: dist + - name: Set up QEMU uses: docker/setup-qemu-action@v3 + - name: Set up docker-buildx uses: docker/setup-buildx-action@v3 + - name: Test Installation uses: docker/build-push-action@v6 with: diff --git a/pyproject.toml b/pyproject.toml index 7b117fa..cbab3b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ dev-pylint = [ ] dev-pytest = [ "pytest == 8.3.3", - "pylint == 3.3.1", # We need this to check for the examples + "pylint == 3.3.1", # We need this to check for the examples "frequenz-repo-config[extra-lint-examples] == 0.10.0", "pytest-mock == 3.14.0", "pytest-asyncio == 0.24.0", @@ -136,6 +136,8 @@ disable = [ # pylint's unsubscriptable check is buggy and is not needed because # it is a type-check, for which we already have mypy. "unsubscriptable-object", + # Checked by mypy + "no-member", # Checked by flake8 "f-string-without-interpolation", "line-too-long", @@ -144,8 +146,6 @@ disable = [ "unnecessary-lambda-assignment", "unused-import", "unused-variable", - # Checked by mypy - "no-member", ] [tool.pytest.ini_options]