diff --git a/.github/workflows/base.yml.template b/.github/workflows/base.yml.template index bf296e597..01a0ee624 100644 --- a/.github/workflows/base.yml.template +++ b/.github/workflows/base.yml.template @@ -3,9 +3,8 @@ name: &{name} on: push: branches: [ master, dev ] - pull_request: - types: - - review_requested + issue_comment: + types: [created] jobs: build: @@ -16,7 +15,7 @@ jobs: &{matrix} &{exclude} - 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 diff --git a/.github/workflows/develop_install.yml b/.github/workflows/develop_install.yml index eff4e15b0..a19dbd2b7 100644 --- a/.github/workflows/develop_install.yml +++ b/.github/workflows/develop_install.yml @@ -3,9 +3,8 @@ name: Test develop install on: push: branches: [ master, dev ] - pull_request: - types: - - review_requested + issue_comment: + types: [created] jobs: build: @@ -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 diff --git a/.github/workflows/end_to_end.yml b/.github/workflows/end_to_end.yml index 98d1a309e..4e70a0744 100644 --- a/.github/workflows/end_to_end.yml +++ b/.github/workflows/end_to_end.yml @@ -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: @@ -25,7 +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 diff --git a/.github/workflows/examples_pytest.yml b/.github/workflows/examples_pytest.yml index 31ccb3ffa..6d9af5be4 100644 --- a/.github/workflows/examples_pytest.yml +++ b/.github/workflows/examples_pytest.yml @@ -3,9 +3,8 @@ name: Examples Pytest on: push: branches: [ master, dev ] - pull_request: - types: - - review_requested + issue_comment: + types: [created] jobs: build: @@ -27,7 +26,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 diff --git a/.github/workflows/finn_integration.yml b/.github/workflows/finn_integration.yml index 19becbe70..560c3466b 100644 --- a/.github/workflows/finn_integration.yml +++ b/.github/workflows/finn_integration.yml @@ -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: @@ -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 diff --git a/.github/workflows/gen_github_actions.py b/.github/workflows/gen_github_actions.py index 0f996dc2b..c4cd85bd2 100644 --- a/.github/workflows/gen_github_actions.py +++ b/.github/workflows/gen_github_actions.py @@ -19,6 +19,16 @@ PYTORCH_LIST_REDUCED = ["1.9.1", "1.13.0", "2.1.0"] +# used by noxfile.py +TORCHVISION_VERSION_DICT = { + '1.9.1': '0.10.1', + '1.10.1': '0.11.2', + '1.11.0': '0.12.0', + '1.12.1': '0.13.1', + '1.13.0': '0.14.0', + '2.0.1': '0.15.2', + '2.1.0': '0.16.0'} + PLATFORM_LIST_REDUCED = ['ubuntu-latest'] MATRIX_REDUCED = od([('python_version', list(PYTHON_VERSIONS_REDUCED)), diff --git a/.github/workflows/notebook.yml b/.github/workflows/notebook.yml index fd079b0ca..d3c6a828e 100644 --- a/.github/workflows/notebook.yml +++ b/.github/workflows/notebook.yml @@ -3,9 +3,8 @@ name: Test Notebook execution on: push: branches: [ master, dev ] - pull_request: - types: - - review_requested + issue_comment: + types: [created] jobs: build: @@ -25,7 +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 diff --git a/.github/workflows/ort_integration.yml b/.github/workflows/ort_integration.yml index 7d0eccb27..da4ca778f 100644 --- a/.github/workflows/ort_integration.yml +++ b/.github/workflows/ort_integration.yml @@ -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: @@ -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 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 719f1e769..08f361078 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -8,8 +8,6 @@ on: - opened - reopened - synchronize - - ready_for_review - - review_requested jobs: pre_commit: diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3d9f43ea9..e6d96ad30 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -3,9 +3,8 @@ name: Pytest on: push: branches: [ master, dev ] - pull_request: - types: - - review_requested + issue_comment: + types: [created] jobs: build: @@ -27,7 +26,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 diff --git a/noxfile.py b/noxfile.py index ffb1c5fbd..54b26b668 100644 --- a/noxfile.py +++ b/noxfile.py @@ -12,6 +12,7 @@ from gen_github_actions import JIT_STATUSES from gen_github_actions import PYTHON_VERSIONS from gen_github_actions import PYTORCH_VERSIONS +from gen_github_actions import TORCHVISION_VERSION_DICT IS_OSX = system() == 'Darwin' PYTORCH_STABLE_WHEEL_SRC = 'https://download.pytorch.org/whl/torch_stable.html' @@ -19,15 +20,6 @@ JIT_IDS = tuple([f'{i}'.lower() for i in JIT_STATUSES]) LSTM_EXPORT_MIN_PYTORCH = '1.10.1' -TORCHVISION_VERSION_DICT = { - '1.9.1': '0.10.1', - '1.10.1': '0.11.2', - '1.11.0': '0.12.0', - '1.12.1': '0.13.1', - '1.13.0': '0.14.0', - '2.0.1': '0.15.2', - '2.1.0': '0.16.0'} - PARSED_TORCHVISION_VERSION_DICT = {version.parse(k): v for k, v in TORCHVISION_VERSION_DICT.items()}