allow triggering actions manually #318
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check_scripts | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install packets | |
run: sudo apt-get install pycodestyle pylint3 mypy shellcheck | |
- name: Lint with pycodestyle | |
run: find -name *.py | xargs pycodestyle | |
- name: Lint with pylint | |
continue-on-error: true | |
run: find -name *.py | xargs pylint3 | |
- name: Typecheck with mypy | |
run: find -name *.py | xargs mypy | |
- name: Check bash scripts with shellcheck | |
run: find -name *.sh | xargs shellcheck |