mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
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:
parent
35c4d263e6
commit
f9dcc9a9b4
16
.github/workflows/test-invoke-conda.yml
vendored
16
.github/workflows/test-invoke-conda.yml
vendored
@ -1,16 +1,14 @@
|
||||
name: Test invoke.py
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'development'
|
||||
- 'fix-gh-actions-fork'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
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:
|
||||
matrix:
|
||||
stable-diffusion-model:
|
||||
|
15
.github/workflows/test-invoke-pip.yml
vendored
15
.github/workflows/test-invoke-pip.yml
vendored
@ -1,16 +1,13 @@
|
||||
name: Test invoke.py pip
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'development'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
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:
|
||||
matrix:
|
||||
stable-diffusion-model:
|
||||
|
Loading…
Reference in New Issue
Block a user