From b71662e72639acabed3b28b8a9e305ed18b2da94 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Mon, 24 Jul 2023 13:34:16 -0600 Subject: [PATCH] workflow: add black and isort format checks --- .github/workflows/build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eb60d361..8e03d21f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v2 - name: run run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check" + lint: runs-on: ubuntu-20.04 strategy: @@ -31,6 +32,24 @@ jobs: - name: lint run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make lint" + format-black: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + version: "~= 23.0" + src: "console_conf subiquity subiquitycore system_setup" + + format-isort: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: isort/isort-action@v1 + with: + isort-version: "5.12.0" + sort-paths: "console_conf subiquity subiquitycore system_setup" + static-typing: # In this job, we compare the output of mypy before and after the PR. if: github.event_name == 'pull_request'