Skip to content

Commit 69893fa

Browse files
authored
Create scriptcheck.yml (danmar#2728)
A github action to run checks on shell and python scripts
1 parent bab01a8 commit 69893fa

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/scriptcheck.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
2+
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
3+
name: scriptcheck
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build:
9+
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest]
13+
fail-fast: false # not worthwhile...
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Install missing software on ubuntu
21+
if: matrix.os == 'ubuntu-latest'
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install shellcheck
25+
sudo apt-get install python3-setuptools
26+
sudo pip3 install natsort
27+
sudo pip3 install pexpect
28+
sudo pip3 install pylint
29+
sudo pip3 install unittest2
30+
31+
- name: run Shellcheck
32+
run: |
33+
find . -name "*.sh" | xargs shellcheck || true
34+
35+
- name: run pylint
36+
run: |
37+
pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
38+
pylint --rcfile=pylintrc_travis htmlreport/*.py
39+
pylint --rcfile=pylintrc_travis tools/*.py
40+

0 commit comments

Comments
 (0)