mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
118d5b387b
Currently we use some workflow trigger conditionals to run either a real test workflow (installing the app and running it) or a fake workflow, disguised as the real one, that just auto-passes. This change refactors the workflow to use a single workflow that can be skipped, using another github action to determine which things to run depending on the paths changed.
28 lines
505 B
YAML
28 lines
505 B
YAML
name: style checks
|
|
# just formatting for now
|
|
# TODO: add isort and flake8 later
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: main
|
|
|
|
jobs:
|
|
black:
|
|
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: |
|
|
pip install black
|
|
|
|
# - run: isort --check-only .
|
|
- run: black --check .
|
|
# - run: flake8
|