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 <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-05-09 08:05:32 -04:00
parent c53b95aa93
commit acd3b3c064
1 changed files with 17 additions and 0 deletions

17
.github/workflows/test_code.yaml vendored Normal file
View File

@ -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"