Browse Source

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 1 year ago
committed by GitHub
parent
commit
4f7004f383
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      .github/workflows/node.js.yml
  2. 27
      .github/workflows/pylint.yml

28
.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

27
.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`
Loading…
Cancel
Save