CI: simplify test-on-push logic now that we don't need secrets

The "test on push but only in forks" logic was only necessary when tests didn't work for PRs-from-forks.
This commit is contained in:
Kevin Turner 2022-11-29 13:23:50 -08:00
parent 35c4d263e6
commit f9dcc9a9b4
2 changed files with 13 additions and 18 deletions

View File

@ -1,16 +1,14 @@
name: Test invoke.py name: Test invoke.py
on: [push, pull_request] on:
push:
branches:
- 'main'
- 'development'
- 'fix-gh-actions-fork'
pull_request:
jobs: jobs:
matrix: matrix:
# Run on:
# - pull requests
# - pushes to forks (will run in the forked project with that fork's secrets)
# - pushes to branches that are *not* pull requests
if: |
github.event_name == 'pull_request'
|| github.repository != 'invoke-ai/InvokeAI'
|| github.ref_protected
strategy: strategy:
matrix: matrix:
stable-diffusion-model: stable-diffusion-model:

View File

@ -1,16 +1,13 @@
name: Test invoke.py pip name: Test invoke.py pip
on: [push, pull_request] on:
push:
branches:
- 'main'
- 'development'
pull_request:
jobs: jobs:
matrix: matrix:
# Run on:
# - pull requests
# - pushes to forks (will run in the forked project with that fork's secrets)
# - pushes to branches that are *not* pull requests
if: |
github.event_name == 'pull_request'
|| github.repository != 'invoke-ai/InvokeAI'
|| github.ref_protected
strategy: strategy:
matrix: matrix:
stable-diffusion-model: stable-diffusion-model: