Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 22, 2024
1 parent dae3b53 commit 8d0634e
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/concrete_python_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }})"
SLACK_MESSAGE: "Instance teardown finished with status: ${{ job.status }}. (${{ env.ACTION_RUN_URL }})"

0 comments on commit 8d0634e

Please sign in to comment.