CI: Split off lint as a separate job and add shellcheck #2
Workflow file for this run
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: Lint code | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install flake8 | |
run: pip install flake8 | |
- name: Install shellcheck | |
run: sudo apt-get install shellcheck | |
- name: Lint code | |
run: ./test/lint/lint-all.sh |