workflow: add black and isort format checks
This commit is contained in:
parent
8e65fead3f
commit
b71662e726
|
@ -18,6 +18,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: run
|
- name: run
|
||||||
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check"
|
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -31,6 +32,24 @@ jobs:
|
||||||
- name: lint
|
- name: lint
|
||||||
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make 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:
|
static-typing:
|
||||||
# In this job, we compare the output of mypy before and after the PR.
|
# In this job, we compare the output of mypy before and after the PR.
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
|
|
Loading…
Reference in New Issue