From 362c59f1500639ae016ba0c3a6aa3379f8ae7199 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Mon, 22 Nov 2021 19:01:32 -0500 Subject: [PATCH] Add flake8 job in CI --- .github/workflows/main.yml | 15 +++++++-------- requirements.txt | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a77a65..6eb2d3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/requirements.txt b/requirements.txt index 95fc636..b36b8eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -PyGObject~=3.40 -pylint~=2.11 +flake8 ~= 3.8 +PyGObject ~= 3.40