Add flake8 job in CI

This commit is contained in:
Romain Failliot 2021-11-22 19:01:32 -05:00
parent f4a446caa8
commit 362c59f150
2 changed files with 9 additions and 10 deletions

View File

@ -17,20 +17,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- run: sudo apt install libgirepository1.0-dev
- run: pip install -r requirements.txt
- name: Pylint
uses: cclauss/GitHub-Action-for-pylint@master
with:
args: "apk add --no-cache gtk+3.0-dev gobject-introspection-dev ; pip install -r requirements.txt ; pylint src/**/*.py"
- name: Flake8
run: flake8 src/
meson-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- name: Install dependencies
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
@ -52,6 +50,7 @@ jobs:
options: --privileged
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Flatpak builder
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
with:

View File

@ -1,2 +1,2 @@
PyGObject~=3.40
pylint~=2.11
flake8 ~= 3.8
PyGObject ~= 3.40