From 8d0634ef38e4b598440558c1f5eef80ca5388670 Mon Sep 17 00:00:00 2001 From: Quentin Bourgerie Date: Tue, 22 Oct 2024 10:19:41 +0200 Subject: [PATCH] test --- .../workflows/concrete_python_tests_linux.yml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/concrete_python_tests_linux.yml b/.github/workflows/concrete_python_tests_linux.yml index c23f12db70..a5fbec88cf 100644 --- a/.github/workflows/concrete_python_tests_linux.yml +++ b/.github/workflows/concrete_python_tests_linux.yml @@ -10,11 +10,14 @@ on: branches: - 'main' - 'release/*' + env: DOCKER_IMAGE_TEST: ghcr.io/zama-ai/concrete-compiler + concurrency: group: concrete_python_tests_linux_${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: setup-instance: name: Setup Instance @@ -111,11 +114,22 @@ jobs: set -e export COMPILER_BUILD_DIRECTORY=/compiler-artifacts-pytest cd /concrete/frontends/concrete-python - make venv source .venv/bin/activate export KEY_CACHE_DIRECTORY=./key-set-cache mkdir $KEY_CACHE_DIRECTORY make pytest + # - name: Slack notification + # if: ${{ failure() }} && github.ref == 'refs/heads/main' + # continue-on-error: true + # uses: rtCamp/action-slack-notify@65e6fc1ce697e2df8149d9ae9909acc5ec5599ce + # env: + # SLACK_COLOR: ${{ job.status }} + # SLACK_MESSAGE: | + # Test pytest fail status: ${{ job.status }}.\n + # Merged by: ${{ github.actor }}\n + # Last author: ${{ github.event.head_commit.author }}\n + # Last commiter: ${{ github.event.head_commit.commiter }}\n + # Action url: (${{ env.ACTION_RUN_URL }})" test-notebooks: name: Test concrete-python notebooks @@ -144,6 +158,18 @@ jobs: cd /concrete/frontends/concrete-python source .venv/bin/activate make test-notebooks + # - name: Slack notification + # if: ${{ failure() }} && github.ref == 'refs/heads/main' + # continue-on-error: true + # uses: rtCamp/action-slack-notify@65e6fc1ce697e2df8149d9ae9909acc5ec5599ce + # env: + # SLACK_COLOR: ${{ job.status }} + # SLACK_MESSAGE: | + # Test notebooks fail status: ${{ job.status }}.\n + # Merged by: ${{ github.actor }}\n + # Last author: ${{ github.event.head_commit.author }}\n + # Last commiter: ${{ github.event.head_commit.commiter }}\n + # Action url: (${{ env.ACTION_RUN_URL }})" teardown-instance: name: Teardown instance @@ -167,4 +193,4 @@ jobs: uses: rtCamp/action-slack-notify@4e5fb42d249be6a45a298f3c9543b111b02f7907 env: SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: "Instance teardown finished with status: ${{ job.status }}. (${{ env.ACTION_RUN_URL }})" \ No newline at end of file + SLACK_MESSAGE: "Instance teardown finished with status: ${{ job.status }}. (${{ env.ACTION_RUN_URL }})"