mirror of https://github.com/vladmandic/automatic
32 lines
754 B
YAML
32 lines
754 B
YAML
name: lint-on-push
|
|
|
|
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: install-pylint
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pylint
|
|
- name: pre-commit
|
|
uses: pre-commit-ci/lite-action@v1.0.1
|
|
if: always()
|
|
with:
|
|
msg: apply code formatting and linting auto-fixes
|
|
- name: test-startup
|
|
run: |
|
|
export COMMANDLINE_ARGS="--debug --test"
|
|
python launch.py
|