From 7cc03ed7c8373d88d5cd3260f28f695007a44368 Mon Sep 17 00:00:00 2001 From: Vincent Michaud-Rioux Date: Wed, 25 Oct 2023 20:20:37 +0000 Subject: [PATCH] Turn off compat CPP tests. --- .github/workflows/tests_gpu_cu11.yml | 8 +------- .github/workflows/tests_linux.yml | 8 ++++---- .github/workflows/tests_linux_x86_mpi_gpu.yml | 7 +------ 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tests_gpu_cu11.yml b/.github/workflows/tests_gpu_cu11.yml index 185f3f2563..384d9ca019 100644 --- a/.github/workflows/tests_gpu_cu11.yml +++ b/.github/workflows/tests_gpu_cu11.yml @@ -51,7 +51,7 @@ jobs: nvidia-smi cpptestswithLGPU_cu11: - if: ${{ github.event_name != 'workflow_call' || (inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest') }} + if: ${{ github.event_name != 'workflow_call' }} needs: [builddeps] strategy: matrix: @@ -64,7 +64,6 @@ jobs: - self-hosted - gpu - steps: - name: Validate GPU version and installed compiler run: | @@ -119,10 +118,6 @@ jobs: - name: Install required packages run: | python -m pip install ninja cmake custatevec-cu11 - - - name: Install Latest PennyLane - if: inputs.pennylane-version == 'latest' - run: python -m pip install git+https://github.com/PennyLaneAI/pennylane.git@master - name: Build and run unit tests run: | @@ -171,7 +166,6 @@ jobs: - self-hosted - gpu - steps: - name: Validate GPU version and installed compiler run: | diff --git a/.github/workflows/tests_linux.yml b/.github/workflows/tests_linux.yml index 1187477019..1e6d024658 100644 --- a/.github/workflows/tests_linux.yml +++ b/.github/workflows/tests_linux.yml @@ -28,7 +28,7 @@ concurrency: jobs: cpptests: - if: ${{ github.event_name != 'workflow_call' || (inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest') }} + if: ${{ github.event_name != 'workflow_call' }} strategy: matrix: os: [ubuntu-22.04] @@ -154,7 +154,7 @@ jobs: path: ./main/coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml cpptestswithOpenBLAS: - if: ${{ github.event_name != 'workflow_call' || (inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest') }} + if: ${{ github.event_name != 'workflow_call' }} strategy: matrix: os: [ubuntu-22.04] @@ -287,7 +287,7 @@ jobs: os: ubuntu-22.04 cpptestswithKokkos: - if: ${{ github.event_name != 'workflow_call' || (inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest') }} + if: ${{ github.event_name != 'workflow_call' }} needs: [build_and_cache_Kokkos] strategy: matrix: @@ -514,7 +514,7 @@ jobs: cpptestsWithMultipleBackends: # Device-specific tests are performed for both. Device-agnostic tests default to LightningQubit. - if: ${{ github.event_name != 'workflow_call' || (inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest') }} + if: ${{ github.event_name != 'workflow_call' }} needs: [build_and_cache_Kokkos] strategy: matrix: diff --git a/.github/workflows/tests_linux_x86_mpi_gpu.yml b/.github/workflows/tests_linux_x86_mpi_gpu.yml index 81ff3aba17..beba068964 100644 --- a/.github/workflows/tests_linux_x86_mpi_gpu.yml +++ b/.github/workflows/tests_linux_x86_mpi_gpu.yml @@ -28,7 +28,7 @@ concurrency: jobs: cpp_tests: - if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-version != '' && inputs.pennylane-version != '') + if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') && ${{ github.event_name != 'workflow_call' }} runs-on: - self-hosted - linux @@ -109,10 +109,6 @@ jobs: mpicxx --version module unload ${{ matrix.mpilib }} - - name: Install Latest PennyLane - if: inputs.pennylane-version == 'latest' - run: python -m pip install git+https://github.com/PennyLaneAI/pennylane.git@master - - name: Build and run unit tests run: | source /etc/profile.d/modules.sh && module use /opt/modules/ && module load ${{ matrix.mpilib }} @@ -159,7 +155,6 @@ jobs: rm -rf * .git .gitignore .github pip cache purge - python_tests: if: contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || (inputs.lightning-version != '' && inputs.pennylane-version != '') runs-on: