From 27dcf5c764caae182c876e53d4b644cdda09165f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 30 Jul 2020 23:15:33 +0200 Subject: [PATCH] Create check Github Action --- .github/workflows/check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..1888e0e0 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: Syntax check + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Check commands + run: python -m py_compile royalpack/commands/__init__.py + - name: Check events + run: python -m py_compile royalpack/events/__init__.py + - name: Check stars + run: python -m py_compile royalpack/stars/__init__.py + - name: Check tables + run: python -m py_compile royalpack/tables/__init__.py