Skip to content

Commit

Permalink
Improve/test trigger (#3)
Browse files Browse the repository at this point in the history
* created skeleton of new workflow

* simplified skeleton for testing

* replaced review_requested action with issue_comment one so tests don't run when adding reviewers

* changed to single quotes

* replaced double quotes with single quotes
  • Loading branch information
costigt-dev authored Mar 8, 2024
1 parent 2004568 commit 130746d
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 61 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/base.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: &{name}
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/base_reduced.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- opened
- reopened
- synchronize
- ready_for_review


jobs:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/develop_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Test develop install
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -22,7 +21,7 @@ jobs:



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Test End-to-end flows
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -24,8 +23,7 @@ jobs:
- platform: 'windows-latest'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/examples_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Examples Pytest
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -26,8 +25,7 @@ jobs:
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/finn_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Test Brevitas-FINN integration
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -21,8 +20,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Test Notebook execution
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -24,8 +23,7 @@ jobs:
- platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/ort_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Test Brevitas-ORT integration
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -21,8 +20,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
- review_requested

jobs:
pre_commit:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Pytest
on:
push:
branches: [ master, dev ]
pull_request:
types:
- review_requested
issue_comment:
types: [created]

jobs:
build:
Expand All @@ -26,8 +25,7 @@ jobs:
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_develop_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -23,8 +24,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -26,8 +27,7 @@ jobs:
- platform: 'windows-latest'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_examples_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -24,8 +25,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_finn_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -23,8 +24,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -26,8 +27,7 @@ jobs:
- platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_ort_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -23,8 +24,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reduced_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- opened
- reopened
- synchronize
- ready_for_review
issue_comment:
types: [created]


jobs:
Expand All @@ -24,8 +25,7 @@ jobs:




if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft && (github.event_name != 'issue_comment' || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}
steps:

- name: Checkout repo
Expand Down

0 comments on commit 130746d

Please sign in to comment.