Skip to content

Commit 362c59f

Browse files
committed
Add flake8 job in CI
1 parent f4a446c commit 362c59f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,18 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
20-
with:
21-
fetch-depth: 0
20+
- uses: actions/setup-python@v2
21+
- run: sudo apt install libgirepository1.0-dev
22+
- run: pip install -r requirements.txt
2223

23-
- name: Pylint
24-
uses: cclauss/GitHub-Action-for-pylint@master
25-
with:
26-
args: "apk add --no-cache gtk+3.0-dev gobject-introspection-dev ; pip install -r requirements.txt ; pylint src/**/*.py"
24+
- name: Flake8
25+
run: flake8 src/
2726

2827
meson-build-test:
2928
runs-on: ubuntu-latest
3029
steps:
3130
- uses: actions/checkout@v2
32-
with:
33-
fetch-depth: 0
31+
- uses: actions/setup-python@v2
3432

3533
- name: Install dependencies
3634
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
@@ -52,6 +50,7 @@ jobs:
5250
options: --privileged
5351
steps:
5452
- uses: actions/checkout@v2
53+
- uses: actions/setup-python@v2
5554
- name: Flatpak builder
5655
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3
5756
with:

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
PyGObject~=3.40
2-
pylint~=2.11
1+
flake8 ~= 3.8
2+
PyGObject ~= 3.40

0 commit comments

Comments
 (0)