From fe31d5fe0edc6560a959143d144683e953711705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Fri, 29 Nov 2024 17:03:22 +0100 Subject: [PATCH] chore(ci): run integer tests on approval only if file changed --- .github/workflows/aws_tfhe_integer_tests.yml | 3 ++- .github/workflows/aws_tfhe_signed_integer_tests.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws_tfhe_integer_tests.yml b/.github/workflows/aws_tfhe_integer_tests.yml index cd4f8dfa1..eb2ec357b 100644 --- a/.github/workflows/aws_tfhe_integer_tests.yml +++ b/.github/workflows/aws_tfhe_integer_tests.yml @@ -59,6 +59,7 @@ jobs: - tfhe/src/core_crypto/** - tfhe/src/shortint/** - tfhe/src/integer/** + - .github/workflows/aws_tfhe_integer_tests.yml setup-instance: name: Setup instance (unsigned-integer-tests) @@ -66,7 +67,7 @@ jobs: if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs' && needs.should-run.outputs.integer_test == 'true') || (github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') || - (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved') && needs.should-run.outputs.integer_test == 'true') || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest outputs: diff --git a/.github/workflows/aws_tfhe_signed_integer_tests.yml b/.github/workflows/aws_tfhe_signed_integer_tests.yml index 23e615d58..f2150c6ba 100644 --- a/.github/workflows/aws_tfhe_signed_integer_tests.yml +++ b/.github/workflows/aws_tfhe_signed_integer_tests.yml @@ -66,7 +66,7 @@ jobs: if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs' && needs.should-run.outputs.integer_test == 'true') || (github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') || - (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) || + (github.event_name == 'pull_request' && contains(github.event.label.name, 'approved') && needs.should-run.outputs.integer_test == 'true') || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest outputs: