diff --git a/.github/workflows/compat-check-latest-latest.yml b/.github/workflows/compat-check-latest-latest.yml index 63533e089d..fadf592dee 100644 --- a/.github/workflows/compat-check-latest-latest.yml +++ b/.github/workflows/compat-check-latest-latest.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/latest uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - latest/latest uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/latest uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - latest/latest uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-latest-stable.yml b/.github/workflows/compat-check-latest-stable.yml index 3e589283eb..d395d09530 100644 --- a/.github/workflows/compat-check-latest-stable.yml +++ b/.github/workflows/compat-check-latest-stable.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/stable uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - latest/stable uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/stable uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - latest/stable uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-release-release.yml b/.github/workflows/compat-check-release-release.yml index 52c6bea41c..2c3f9becfb 100644 --- a/.github/workflows/compat-check-release-release.yml +++ b/.github/workflows/compat-check-release-release.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - release/release uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - release/release uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - release/release uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - release/release uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets diff --git a/.github/workflows/tests_linux.yml b/.github/workflows/tests_linux.yml index f1364dec27..1e96bfebea 100644 --- a/.github/workflows/tests_linux.yml +++ b/.github/workflows/tests_linux.yml @@ -555,12 +555,11 @@ jobs: - name: Run PennyLane-Lightning unit tests if: ${{ matrix.pl_backend != 'all'}} run: | - # TODO: Remove installing pytest-xdist with release v0.36.0 - python -m pip install pytest-xdist + # TODO: Test in parallel using pytest-xdist after v0.36.0 cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS - OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest -n auto tests/ -k "test_native_mcm" $COVERAGE_FLAGS --cov-append + OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "test_native_mcm" $COVERAGE_FLAGS --cov-append pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append pl-device-test --device ${DEVICENAME} --shots=None --skip-ops $COVERAGE_FLAGS --cov-append mv .coverage .coverage-${{ github.job }}-${{ matrix.pl_backend }}