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
pull/46/head
Marc 2021-05-24 00:58:41 +01:00 committed by GitHub
parent b75c2e1317
commit 4f7004f383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

28
.github/workflows/node.js.yml vendored Normal file
View File

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

27
.github/workflows/pylint.yml vendored Normal file
View File

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