From ed6ae6815d665069c9b6f7d790390dceb0f037c9 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 7 Sep 2020 09:55:41 +0200 Subject: [PATCH] tests: add github workflows Add github workflow. Especially for flake8 for now. Signed-off-by: Guillaume Abrioux (cherry picked from commit 1ee626a1b3c277c3b33e1c30ab65416a776c7b96) --- .github/workflows/flake8.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/flake8.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 000000000..06c932dc0 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,25 @@ +name: flake8 +on: + pull_request: +jobs: + flake8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ricardochaves/python-lint@v1.3.0 + 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