From 4ace501e9edb1246568f4dc47f516ffe659b1844 Mon Sep 17 00:00:00 2001 From: Aleks Knezevic Date: Fri, 8 Nov 2024 21:27:08 +0000 Subject: [PATCH] Don't run tests unless pre-commit passes --- .github/on-pr.yml | 1 + .github/workflows/on-pr.yml | 1 + .github/workflows/on-push.yml | 1 + tt_torch/dynamo/backend.py | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/on-pr.yml b/.github/on-pr.yml index 76a781f8..ed5ae1f8 100644 --- a/.github/on-pr.yml +++ b/.github/on-pr.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 76a781f8..ed5ae1f8 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 2d961e22..d3739ff2 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit diff --git a/tt_torch/dynamo/backend.py b/tt_torch/dynamo/backend.py index 5fdbd5db..5110898a 100644 --- a/tt_torch/dynamo/backend.py +++ b/tt_torch/dynamo/backend.py @@ -379,4 +379,4 @@ def backend(gm, example_inputs, options=None): return _base_backend(gm, example_inputs, compiler_config=options) -# backend = aot_autograd(fw_compiler=_base_backend) +# backend = aot_autograd(fw_compiler=_base_backend) \ No newline at end of file