Skip to content

Commit

Permalink
Turn off compat CPP tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 25, 2023
1 parent 32981d0 commit 7cc03ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/tests_gpu_cu11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -64,7 +64,6 @@ jobs:
- self-hosted
- gpu


steps:
- name: Validate GPU version and installed compiler
run: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -171,7 +166,6 @@ jobs:
- self-hosted
- gpu


steps:
- name: Validate GPU version and installed compiler
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/tests_linux_x86_mpi_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7cc03ed

Please sign in to comment.