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/compat-check-stable-latest.yml b/.github/workflows/compat-check-stable-latest.yml index f7e125ca69..a06e4b9a99 100644 --- a/.github/workflows/compat-check-stable-latest.yml +++ b/.github/workflows/compat-check-stable-latest.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - stable/latest uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - stable/latest uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - stable/latest uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - stable/latest uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-stable-stable.yml b/.github/workflows/compat-check-stable-stable.yml index 8f33068c39..ddf6e07b19 100644 --- a/.github/workflows/compat-check-stable-stable.yml +++ b/.github/workflows/compat-check-stable-stable.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - stable/stable uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - stable/stable uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - stable/stable uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - stable/stable uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets diff --git a/.github/workflows/tests_gpu_cuda.yml b/.github/workflows/tests_gpu_cuda.yml index a86097b178..c15f4fa1ba 100644 --- a/.github/workflows/tests_gpu_cuda.yml +++ b/.github/workflows/tests_gpu_cuda.yml @@ -1,10 +1,6 @@ name: Testing::Linux::x86_64::LGPU on: workflow_call: - secrets: - codecov_token: - description: The codecov token to use when uploading coverage files - required: true inputs: lightning-version: type: string @@ -347,7 +343,8 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.codecov_token }} + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} upload-to-codecov-linux-cpp: needs: [cpptestswithLGPU] @@ -366,7 +363,8 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.codecov_token }} + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Cleanup if: always() diff --git a/.github/workflows/tests_gpu_kokkos.yml b/.github/workflows/tests_gpu_kokkos.yml index 663f020e9e..4e54602a14 100644 --- a/.github/workflows/tests_gpu_kokkos.yml +++ b/.github/workflows/tests_gpu_kokkos.yml @@ -303,9 +303,9 @@ jobs: run: | cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` - PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS 2> /dev/null || echo Something went wrong with Pytest pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append 2> /dev/null || echo Something went wrong with pl-device-test shot=20000 pl-device-test --device ${DEVICENAME} --shots=None --skip-ops $COVERAGE_FLAGS --cov-append 2> /dev/null || echo Something went wrong with pl-device-test shot=None + PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS 2> /dev/null || echo Something went wrong with Pytest mv coverage.xml coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml - name: Install all backend devices @@ -325,10 +325,10 @@ jobs: OMP_PROC_BIND: false run: | cd main/ - PL_DEVICE=lightning.qubit python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS + PL_DEVICE=lightning.qubit python -m pytest tests/ $COVERAGE_FLAGS pl-device-test --device lightning.qubit --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append pl-device-test --device lightning.qubit --shots=None --skip-ops $COVERAGE_FLAGS --cov-append - PL_DEVICE=lightning.kokkos python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS --cov-append + PL_DEVICE=lightning.kokkos python -m pytest tests/ $COVERAGE_FLAGS pl-device-test --device lightning.kokkos --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append pl-device-test --device lightning.kokkos --shots=None --skip-ops $COVERAGE_FLAGS --cov-append mv coverage.xml coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml diff --git a/.github/workflows/tests_linux.yml b/.github/workflows/tests_linux.yml index dd99c8377c..1e96bfebea 100644 --- a/.github/workflows/tests_linux.yml +++ b/.github/workflows/tests_linux.yml @@ -1,10 +1,6 @@ name: Testing (Linux) on: workflow_call: - secrets: - codecov_token: - description: The codecov token to use when uploading coverage files - required: true inputs: lightning-version: type: string @@ -559,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 }} @@ -629,7 +624,8 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.codecov_token }} + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} upload-to-codecov-linux-cpp: needs: [cpptests, cpptestswithOpenBLAS, cpptestswithKokkos] @@ -648,7 +644,8 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.codecov_token }} + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} cpptestsWithMultipleBackends: # Device-specific tests are performed for both. Device-agnostic tests default to LightningQubit. diff --git a/.github/workflows/tests_linux_x86_mpi_gpu.yml b/.github/workflows/tests_linux_x86_mpi_gpu.yml index 5e9db718b9..4d78d4cfff 100644 --- a/.github/workflows/tests_linux_x86_mpi_gpu.yml +++ b/.github/workflows/tests_linux_x86_mpi_gpu.yml @@ -1,10 +1,6 @@ name: Tests::Linux::x86_64::LGPU::MPI on: workflow_call: - secrets: - codecov_token: - description: The codecov token to use when uploading coverage files - required: true inputs: lightning-version: type: string @@ -305,7 +301,7 @@ jobs: with: fail_ci_if_error: true verbose: true - token: ${{ secrets.codecov_token }} + token: ${{ secrets.CODECOV_TOKEN }} - name: Cleanup if: always() @@ -332,7 +328,7 @@ jobs: with: fail_ci_if_error: true verbose: true - token: ${{ secrets.codecov_token }} + token: ${{ secrets.CODECOV_TOKEN }} - name: Cleanup if: always() diff --git a/.github/workflows/tests_windows.yml b/.github/workflows/tests_windows.yml index 3677625c13..b31ff91c9a 100644 --- a/.github/workflows/tests_windows.yml +++ b/.github/workflows/tests_windows.yml @@ -1,10 +1,6 @@ name: Testing (Windows) on: workflow_call: - secrets: - codecov_token: - description: The codecov token to use when uploading coverage files - required: true inputs: lightning-version: type: string @@ -269,4 +265,5 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.codecov_token }} \ No newline at end of file + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tests_without_binary.yml b/.github/workflows/tests_without_binary.yml index 27d519a4f6..c061e64d7d 100644 --- a/.github/workflows/tests_without_binary.yml +++ b/.github/workflows/tests_without_binary.yml @@ -1,10 +1,6 @@ name: Testing without binary on: workflow_call: - secrets: - codecov_token: - description: The codecov token to use when uploading coverage files - required: true inputs: lightning-version: type: string @@ -117,4 +113,5 @@ jobs: with: files: ./main/coverage.xml fail_ci_if_error: true - token: ${{ secrets.codecov_token }} \ No newline at end of file + verbose: true + token: ${{ secrets.CODECOV_TOKEN }}