Skip to content

Commit

Permalink
Skip cpp test unless latest/latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Sep 14, 2023
1 parent a38fae1 commit 4595021
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ concurrency:

jobs:
cpptests:
if: ${{ github.event_name == 'workflow_call' && inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest'}}
strategy:
matrix:
os: [ubuntu-22.04]
Expand Down Expand Up @@ -163,6 +164,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'}}
strategy:
matrix:
os: [ubuntu-22.04]
Expand Down Expand Up @@ -292,6 +294,7 @@ jobs:
os: ubuntu-22.04

cpptestswithKokkos:
if: ${{ github.event_name == 'workflow_call' && inputs.lightning-version == 'latest' && inputs.pennylane-version == 'latest'}}
needs: [build_and_cache_Kokkos]
strategy:
matrix:
Expand Down Expand Up @@ -513,6 +516,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'}}
needs: [build_and_cache_Kokkos]
strategy:
matrix:
Expand Down

0 comments on commit 4595021

Please sign in to comment.