Add flake8 job in CI
This commit is contained in:
parent
f4a446caa8
commit
362c59f150
|
@ -17,20 +17,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
- uses: actions/setup-python@v2
|
||||||
fetch-depth: 0
|
- run: sudo apt install libgirepository1.0-dev
|
||||||
|
- run: pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Pylint
|
- name: Flake8
|
||||||
uses: cclauss/GitHub-Action-for-pylint@master
|
run: flake8 src/
|
||||||
with:
|
|
||||||
args: "apk add --no-cache gtk+3.0-dev gobject-introspection-dev ; pip install -r requirements.txt ; pylint src/**/*.py"
|
|
||||||
|
|
||||||
meson-build-test:
|
meson-build-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
- uses: actions/setup-python@v2
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
|
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
|
||||||
|
@ -52,6 +50,7 @@ jobs:
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
- name: Flatpak builder
|
- name: Flatpak builder
|
||||||
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
|
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
PyGObject~=3.40
|
flake8 ~= 3.8
|
||||||
pylint~=2.11
|
PyGObject ~= 3.40
|
||||||
|
|
Loading…
Reference in New Issue