diff --git a/.github/workflows/frontend-checks.yml b/.github/workflows/frontend-checks.yml index 44f12dabd8..680c0a5b22 100644 --- a/.github/workflows/frontend-checks.yml +++ b/.github/workflows/frontend-checks.yml @@ -25,6 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: check for changed frontend files + if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' }} id: changed-files uses: tj-actions/changed-files@v42 with: @@ -33,30 +34,30 @@ jobs: - 'invokeai/frontend/web/**' - name: install dependencies - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} uses: ./.github/actions/install-frontend-deps - name: tsc - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm lint:tsc' shell: bash - name: dpdm - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm lint:dpdm' shell: bash - name: eslint - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm lint:eslint' shell: bash - name: prettier - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm lint:prettier' shell: bash - name: knip - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm lint:knip' shell: bash diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 7c29799796..f7bd9be7a3 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -25,6 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: check for changed frontend files + if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' }} id: changed-files uses: tj-actions/changed-files@v42 with: @@ -33,10 +34,10 @@ jobs: - 'invokeai/frontend/web/**' - name: install dependencies - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} uses: ./.github/actions/install-frontend-deps - name: vitest - if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: 'pnpm test:no-watch' shell: bash diff --git a/.github/workflows/python-checks.yml b/.github/workflows/python-checks.yml index 7b528af731..f92065059c 100644 --- a/.github/workflows/python-checks.yml +++ b/.github/workflows/python-checks.yml @@ -24,6 +24,7 @@ jobs: uses: actions/checkout@v4 - name: check for changed python files + if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' }} id: changed-files uses: tj-actions/changed-files@v42 with: @@ -35,7 +36,7 @@ jobs: - 'tests/**' - name: setup python - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} uses: actions/setup-python@v5 with: python-version: '3.10' @@ -43,16 +44,16 @@ jobs: cache-dependency-path: pyproject.toml - name: install ruff - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: pip install ruff shell: bash - name: ruff check - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: ruff check --output-format=github . shell: bash - name: ruff format - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: ruff format --check . shell: bash diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index b90040c52d..3d37355373 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -58,6 +58,7 @@ jobs: uses: actions/checkout@v4 - name: check for changed python files + if: ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' }} id: changed-files uses: tj-actions/changed-files@v42 with: @@ -69,7 +70,7 @@ jobs: - 'tests/**' - name: setup python - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -77,12 +78,12 @@ jobs: cache-dependency-path: pyproject.toml - name: install dependencies - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} env: PIP_EXTRA_INDEX_URL: ${{ matrix.extra-index-url }} run: > pip3 install --editable=".[test]" - name: run pytest - if: ${{ steps.changed-files.outputs.python_any_changed == 'true' }} + if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }} run: pytest