Skip to content

Commit

Permalink
Update support
Browse files Browse the repository at this point in the history
  • Loading branch information
maliasadi committed Apr 15, 2024
1 parent a3c5aee commit 4c8292c
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/compat-check-latest-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/compat-check-latest-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/compat-check-release-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/compat-check-stable-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/compat-check-stable-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 4 additions & 6 deletions .github/workflows/tests_gpu_cuda.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests_gpu_kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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]
Expand All @@ -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.
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/tests_linux_x86_mpi_gpu.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests_windows.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -269,4 +265,5 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.codecov_token }}
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 2 additions & 5 deletions .github/workflows/tests_without_binary.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -117,4 +113,5 @@ jobs:
with:
files: ./main/coverage.xml
fail_ci_if_error: true
token: ${{ secrets.codecov_token }}
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 4c8292c

Please sign in to comment.