From 4f7004f38350fab3b1aa98c4c18a2479d885f297 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 24 May 2021 00:58:41 +0100 Subject: [PATCH] Build: Create GitHub Action for Angular UI and Python (#41) * misc: Testing actions for module build * misc: Add actions branch * misc: Build for node 16.x only * misc: attempt naive multiple build in action * misc: fix bad oneliner * misc: omit Misc/ dir from builder * misc: Add pylint action * misc: Ignore Pylints F0001 error due to file naming scheme * misc: Only build for master --- .github/workflows/node.js.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/pylint.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/node.js.yml create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..484f6f4 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,28 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Build Modules + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + + # - name: Get Dependencies + # working-directory: ./mdk4 + # run: npm i + - name: Build All Modules + run: for D in */; do if [[ "$D" != "Libraries/" && "$D" != "Misc/" && "$D" != "node_modules/" ]]; then cd $D; npm i; npm run build; cd ../; fi; done \ No newline at end of file diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..d5554db --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,27 @@ +name: Pylint + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint --disable=F0001 `ls -R|grep .py$|xargs` +