From ef8f8882ada62e7b84653457add83f8a56ec1099 Mon Sep 17 00:00:00 2001 From: Umut Date: Tue, 21 Mar 2023 10:28:19 +0100 Subject: [PATCH] chore: create blank concrete-python-tests workflows --- .../workflows/concrete_python_tests_linux.yml | 37 +++++++++++++++++++ .../workflows/concrete_python_tests_macos.yml | 28 ++++++++++++++ .github/workflows/main.yml | 14 +++++++ ci/slab.toml | 9 +++++ 4 files changed, 88 insertions(+) create mode 100644 .github/workflows/concrete_python_tests_linux.yml create mode 100644 .github/workflows/concrete_python_tests_macos.yml diff --git a/.github/workflows/concrete_python_tests_linux.yml b/.github/workflows/concrete_python_tests_linux.yml new file mode 100644 index 000000000..b2904ffde --- /dev/null +++ b/.github/workflows/concrete_python_tests_linux.yml @@ -0,0 +1,37 @@ +name: Concrete Python Tests (Linux) + +on: + workflow_dispatch: + inputs: + instance_id: + description: 'Instance ID' + type: string + instance_image_id: + description: 'Instance AMI ID' + type: string + instance_type: + description: 'Instance product type' + type: string + runner_name: + description: 'Action runner name' + type: string + request_id: + description: 'Slab request ID' + type: string + +env: + DOCKER_IMAGE_TEST: ghcr.io/zama-ai/concrete-compiler + GLIB_VER: 2_28 + +jobs: + BuildConcreteCompilerAndTestConcretePythonInLinux: + name: Build Concrete Compiler and Test Concrete Python in Linux + runs-on: ${{ github.event.inputs.runner_name }} + if: ${{ !cancelled() }} + steps: + - name: Log instance configuration + run: | + echo "IDs: ${{ inputs.instance_id }}" + echo "AMI: ${{ inputs.instance_image_id }}" + echo "Type: ${{ inputs.instance_type }}" + echo "Request ID: ${{ inputs.request_id }}" diff --git a/.github/workflows/concrete_python_tests_macos.yml b/.github/workflows/concrete_python_tests_macos.yml new file mode 100644 index 000000000..cfd99aa2b --- /dev/null +++ b/.github/workflows/concrete_python_tests_macos.yml @@ -0,0 +1,28 @@ +name: Concrete Python Tests (macOS) + +on: + workflow_call: + workflow_dispatch: + secrets: + CONCRETE_CI_SSH_PRIVATE: + required: true + CONCRETE_ACTIONS_TOKEN: + required: true + +concurrency: + group: concrete_python_tests_macos_${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +jobs: + BuildConcreteCompilerAndTestConcretePythonInLinux: + name: Build Concrete Compiler and Test Concrete Python in macOS + runs-on: macos-11 + steps: + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.CONCRETE_CI_SSH_PRIVATE }} + + - uses: actions/checkout@v3 + with: + submodules: recursive + token: ${{ secrets.CONCRETE_ACTIONS_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 923a013b5..cd3a6157c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -147,3 +147,17 @@ jobs: if: needs.file-change.outputs.concrete-python == 'true' || needs.file-change.outputs.push-main uses: ./.github/workflows/concrete_python_checks.yml secrets: inherit + + concrete-python-tests-linux: + needs: file-change + if: needs.file-change.outputs.concrete-python == 'true' || needs.file-change.outputs.push-main + uses: ./.github/workflows/start_slab.yml + secrets: inherit + with: + command: concrete-python-tests-linux + + concrete-python-tests-macos: + needs: file-change + if: needs.file-change.outputs.concrete-python == 'true' || needs.file-change.outputs.push-main + uses: ./.github/workflows/concrete_python_tests_macos.yml + secrets: inherit diff --git a/ci/slab.toml b/ci/slab.toml index a88b9eb5e..1ae31c7f4 100644 --- a/ci/slab.toml +++ b/ci/slab.toml @@ -70,3 +70,12 @@ workflow = "ml_benchmark_subset.yml" profile = "m6i-cpu-bench" matrix = [0,1,2,3,4,5,6,7,8,9,10] max_parallel_jobs = 2 + +################################################# +# Concrete Python Commands +################################################# + +[command.concrete-python-tests-linux] +workflow = "concrete_python_tests_linux.yml" +profile = "m6i-cpu-test" +check_run_name = "Concrete Python Tests (Linux)"