mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ea4d071503
The timeouts are at least 3x the expected time to complete the jobs. This is particularly relevant for the `pytest` job. Occasionally, it hangs while running tests that do network things, and the job only times out after 6 hours.
34 lines
723 B
YAML
34 lines
723 B
YAML
# This workflow runs the python code quality checks.
|
|
#
|
|
# It may be triggered via dispatch, or by another workflow.
|
|
#
|
|
# TODO: Add mypy or pyright to the checks.
|
|
|
|
name: 'Check: python'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
check-backend:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5 # expected run time: <1 min
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install python dependencies
|
|
uses: ./.github/actions/install-python-deps
|
|
|
|
- name: Install ruff
|
|
run: pip install ruff
|
|
shell: bash
|
|
|
|
- name: Ruff check
|
|
run: ruff check --output-format=github .
|
|
shell: bash
|
|
|
|
- name: Ruff format
|
|
run: ruff format --check .
|
|
shell: bash
|