InvokeAI/.github/workflows/style-checks.yml

26 lines
470 B
YAML
Raw Normal View History

name: style checks
2023-07-21 14:14:31 +00:00
on:
pull_request:
2023-07-21 14:14:31 +00:00
push:
branches: main
2023-07-21 14:14:31 +00:00
jobs:
black:
2023-07-21 14:14:31 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies with pip
run: |
2023-08-18 12:51:07 +00:00
pip install black flake8 Flake8-pyproject isort
2023-07-21 14:14:31 +00:00
2023-08-18 12:51:07 +00:00
- run: isort --check-only .
2023-07-21 14:14:31 +00:00
- run: black --check .
- run: flake8