From acd3b3c0649236f3a7f56dabd8f961ee8aa79a67 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 9 May 2021 08:05:32 -0400 Subject: [PATCH] gh_actions: add initial test workflow The intial test uses the python-lint action to validate code style according to the preferences used for Python code in the Moonraker repo. Signed-off-by: Eric Callahan --- .github/workflows/test_code.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test_code.yaml diff --git a/.github/workflows/test_code.yaml b/.github/workflows/test_code.yaml new file mode 100644 index 0000000..3b48d76 --- /dev/null +++ b/.github/workflows/test_code.yaml @@ -0,0 +1,17 @@ +# CI for code style and application tests + +name: test-code +on: [push, pull_request] +jobs: + lint-python-code: + - uses: actions/checkout@v1 + - uses: ricardochaves/python-lint@v1.4.0 + with: + python-root-list: "moonraker scripts" + use-pylint: false + use-pycodestyle: true + use-flake8: false + use-black: false + use-mypy: false + use-isort: false + extra-pycodestyle-options: "--ignore=E226,E301,E302,E303,W503,W504 --max-line-length=80 --max-doc-length=80"