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 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:

View File

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