From d891ba2181dfa53bd5e5be7d9cc0bc5360f68bd1 Mon Sep 17 00:00:00 2001 From: youben11 Date: Tue, 21 Mar 2023 14:33:04 +0100 Subject: [PATCH] ci(compiler): enable minimal tests on PR (macos) --- .github/workflows/compiler_macos_build_and_test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compiler_macos_build_and_test.yml b/.github/workflows/compiler_macos_build_and_test.yml index 843076fd8..6c314d727 100644 --- a/.github/workflows/compiler_macos_build_and_test.yml +++ b/.github/workflows/compiler_macos_build_and_test.yml @@ -81,8 +81,15 @@ jobs: echo "Debug: ccache statistics (after the build):" ccache -s + - name: Enable complete tests on push to main + if: github.ref == 'refs/heads/main' + run: echo "MINIMAL_TESTS=OFF" >> $GITHUB_ENV + + - name: Enable minimal tests otherwise + if: github.ref != 'refs/heads/main' + run: echo "MINIMAL_TESTS=ON" >> $GITHUB_ENV + - name: Test - if: github.event_name == 'push' run: | set -e cd compilers/concrete-compiler/compiler @@ -90,6 +97,6 @@ jobs: ccache -s export CONCRETE_COMPILER_DATAFLOW_EXECUTION_ENABLED=OFF pip3.10 install build/wheels/*macosx*.whl - make Python3_EXECUTABLE=$(which python3.10) run-tests + make MINIMAL_TESTS=${{ env.MINIMAL_TESTS }} Python3_EXECUTABLE=$(which python3.10) run-tests echo "Debug: ccache statistics (after the tests):" ccache -s