Files
automatic/.github/workflows/on_pull_request.yaml
T
2023-06-27 08:24:55 -04:00

28 lines
648 B
YAML

name: Run Linting/Formatting on Pull Requests
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout-code
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.10.6
cache: pip
cache-dependency-path: requirements.txt
- name: run-lint
run: |
python -m pip install --upgrade pip
pip install pylint
pylint $(git ls-files '*.py')
- name: test-startup
run: |
export COMMANDLINE_ARGS="--debug --test"
python launch.py