Skip to content

Commit

Permalink
Fix nightly integration tests (#550)
Browse files Browse the repository at this point in the history
* Fix nightly integration tests

The scheduled tests are failing due to not having the inputs set. This
fixes that, and both the Quantinuum syntax checker and IonQ simulator
will run every night.

* Update .github/workflows/integration_tests.yml

Co-authored-by: Bruno Schmitt <[email protected]>

---------

Co-authored-by: Bruno Schmitt <[email protected]>
Co-authored-by: Bettina Heim <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2023
1 parent 98898a5 commit 0e0f7a4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,21 @@ jobs:
done
shell: bash

- name: Submit to IonQ Simulator
if: inputs.target == 'ionq' || github.event_name == 'schedule'
run: |
export IONQ_API_KEY="${{ secrets.IONQ_API_KEY }}"
# TODO: remove this flag once https://github.com/NVIDIA/cuda-quantum/issues/512 is addressed.
export IONQ_FLAG="-DIONQ_TARGET"
for filename in test/NVQPP/integration/*.cpp; do
[ -e "$filename" ] || echo "::error::Couldn't find files ($filename)"
nvq++ -v $IONQ_FLAG $filename --target ionq
CUDAQ_LOG_LEVEL=info ./a.out
done
shell: bash

- name: Submit to ${{ inputs.target }}
if: inputs.target != 'none'
if: inputs.target != 'none' && github.event_name == 'workflow_dispatch'
run: |
if ${{inputs.target == 'ionq'}}; then
export IONQ_API_KEY="${{ secrets.IONQ_API_KEY }}"
Expand Down

0 comments on commit 0e0f7a4

Please sign in to comment.