Skip to content

Add demo

Add demo #11

Workflow file for this run

name: Lint
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
markdown-lint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: |
**/*.md
!**/node_modules
!**/.local
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: "."
ignore_paths: |
node_modules
.local
ignore_names: |
setup-dev.sh
env:
SHELLCHECK_OPTS: -e SC2059 -e SC2086
python-lint:
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 CLI/*.py --count --select=E9,F63,F7,F82 --show-source --statistics
# Exit-zero treats all errors as warnings
flake8 CLI/*.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics