Skip to content

Commit

Permalink
test notif
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 25, 2024
1 parent e326321 commit fb50e8d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 31 deletions.
66 changes: 35 additions & 31 deletions .github/workflows/concrete_python_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ jobs:
needs: setup-instance
runs-on: ${{ needs.setup-instance.outputs.runner-name }}
steps:
- name: Checkout concrete
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
fetch-depth: 0
# - name: Checkout concrete
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# with:
# submodules: recursive
# fetch-depth: 0
- name: Create concrete build directory
run: mkdir build
run: exit 1
- name: Slack notification
if: ${{ failure() }} && github.ref == 'refs/heads/main'
continue-on-error: true
uses: ./.github/workflows/slack_notification
- name: Build concrete-compiler python bindings
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
with:
Expand Down Expand Up @@ -128,18 +132,18 @@ jobs:
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 }})"
- 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.name }}\n
Action url: (${{ env.ACTION_RUN_URL }})"
test-notebooks:
name: Test concrete-python notebooks
Expand All @@ -164,26 +168,26 @@ jobs:
password: ${{ secrets.GHCR_PASSWORD }}
options: >-
-v ${{ github.workspace }}:/concrete
-v /compiler-artifacts:/compiler-artifacts
-v ${{ github.workspace }}/compiler-artifacts:/compiler-artifacts
shell: bash
run: |
set -e
export COMPILER_BUILD_DIRECTORY=/compiler-artifacts
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 }})"
- 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 Down
13 changes: 13 additions & 0 deletions .github/workflows/slack_notification/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
runs:
using: "composite"
steps:
- name: Slack notification
uses: rtCamp/action-slack-notify@65e6fc1ce697e2df8149d9ae9909acc5ec5599ce
env:
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: |
${{ job.name }}: ${{ job.status }}.\n
Merged by: ${{ github.actor }}\n
Last author: ${{ github.event.head_commit.author }}\n
Last commiter: ${{ github.event.head_commit.commiter.name }}\n
Action url: (${{ env.ACTION_RUN_URL }})"

0 comments on commit fb50e8d

Please sign in to comment.