]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: refact flake8 workflow
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 1 Oct 2020 19:59:53 +0000 (21:59 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Oct 2020 06:51:39 +0000 (08:51 +0200)
drop ricardochaves/python-lint action and use `run` steps instead.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
.github/workflows/flake8.yml

index 06c932dc0929d1885c7e5a17e02a86cb9fa6e367..9475ec3dc5b4ffc305a5480872cbb2052780692e 100644 (file)
@@ -1,25 +1,18 @@
 name: flake8
-on:
-  pull_request:
+on: [pull_request]
 jobs:
-  flake8:
+  build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: [ '3.6', '3.7', '3.8' ]
+    name: Python ${{ matrix.python-version }}
     steps:
-      - uses: actions/checkout@v1
-      - uses: ricardochaves/python-lint@v1.3.0
+      - uses: actions/checkout@v2
+      - name: Setup python
+        uses: actions/setup-python@v2
         with:
-          python-root-list: "./library/"
-          use-pylint: false
-          use-pycodestyle: false
-          use-flake8: true
-          use-black: false
-          use-mypy: false
-          use-isort: false
-          extra-pylint-options: ""
-          extra-pycodestyle-options: ""
-          extra-flake8-options: "--max-line-length 160"
-          extra-black-options: ""
-          extra-mypy-options: ""
-          extra-isort-options: ""
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+          python-version: ${{ matrix.python-version }}
+          architecture: x64
+      - run: pip install flake8
+      - run: flake8 --max-line-length 160 ./library/ ./tests/library/
\ No newline at end of file