Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 23, 2024
1 parent a6d6ec4 commit 18bfb93
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/concrete_python_test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: concrete-python tests macos
on:
workflow_dispatch:
pull_request:
path:
paths:
- .github/workflows/concrete_python_tests_macos.yml
push:
branches:
Expand Down
34 changes: 30 additions & 4 deletions .github/workflows/concrete_python_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ name: concrete-python tests linux-cpu
on:
workflow_dispatch:
pull_request:
path:
paths:
- .github/workflows/concrete_python_tests_linux.yml
- frontends/concrete-python/**
push:
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 @@ -107,11 +110,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 All @@ -136,10 +150,22 @@ jobs:
shell: bash
run: |
set -e
export COMPILER_BUILD_DIRECTORY=/compiler-artifacts-notebooks
export COMPILER_BUILD_DIRECTORY=/compiler-artifacts-pytest
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 @@ -163,4 +189,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 18bfb93

Please sign in to comment.