21
21
- ionq
22
22
- iqm
23
23
- oqc
24
+ - pasqal
24
25
- quantinuum
25
26
- nvqc
26
27
- orca
@@ -121,6 +122,9 @@ jobs:
121
122
uses : docker/setup-buildx-action@v3
122
123
with :
123
124
endpoint : builder_context
125
+ version : v0.19.0
126
+ driver-opts : |
127
+ image=moby/buildkit:v0.19.0
124
128
125
129
- name : Extract metadata
126
130
id : metadata
@@ -195,6 +199,9 @@ jobs:
195
199
uses : docker/setup-buildx-action@v3
196
200
with :
197
201
endpoint : builder_context
202
+ version : v0.19.0
203
+ driver-opts : |
204
+ image=moby/buildkit:v0.19.0
198
205
199
206
- name : Login to NGC container registry
200
207
uses : docker/login-action@v3
@@ -381,7 +388,7 @@ jobs:
381
388
shell : bash
382
389
383
390
- name : Setup quantinum account
384
- if : github.event_name == 'schedule' || inputs.target == 'nightly' || inputs.target == 'quantinuum'
391
+ if : (success() || failure()) && ( github.event_name == 'schedule' || inputs.target == 'nightly' || inputs.target == 'quantinuum')
385
392
run : |
386
393
curl -X POST -H "Content Type: application/json" -d '{ "email":"${{ secrets.BACKEND_LOGIN_EMAIL }}","password":"${{ secrets.QUANTINUUM_PASSWORD }}" }' https://qapi.quantinuum.com/v1/login > credentials.json
387
394
id_token=`cat credentials.json | jq -r '."id-token"'`
@@ -390,7 +397,7 @@ jobs:
390
397
echo "refresh: $refresh_token" >> ~/.quantinuum_config
391
398
392
399
- name : QIR syntax check (Quantinuum)
393
- if : github.event_name == 'schedule' || inputs.target == 'nightly'
400
+ if : (success() || failure()) && ( github.event_name == 'schedule' || inputs.target == 'nightly')
394
401
run : |
395
402
echo "### QIR syntax check (Quantinuum)" >> $GITHUB_STEP_SUMMARY
396
403
export CUDAQ_LOG_LEVEL="info"
@@ -687,7 +694,37 @@ jobs:
687
694
exit 1
688
695
fi
689
696
shell : bash
690
-
697
+
698
+ - name : Submit to Pasqal test server
699
+ if : (success() || failure()) && (inputs.target == 'pasqal' || github.event_name == 'schedule' || inputs.target == 'nightly')
700
+ run : |
701
+ echo "### Submit to Pasqal server" >> $GITHUB_STEP_SUMMARY
702
+ python3 -m pip install pasqal-cloud
703
+ export PASQAL_USERNAME='${{ secrets.PASQAL_USERNAME }}'
704
+ export PASQAL_PASSWORD='${{ secrets.PASQAL_PASSWORD }}'
705
+ export PASQAL_PROJECT_ID='${{ secrets.PASQAL_PROJECT_ID }}'
706
+ export PASQAL_MACHINE_TARGET="EMU_FREE" # Speedup queuing time
707
+ set +e # Allow script to keep going through errors
708
+ test_err_sum=0
709
+ python_tests="docs/sphinx/targets/python/pasqal.py"
710
+ for filename in $python_tests; do
711
+ [ -e "$filename" ] || echo "::error::Couldn't find file ($filename)"
712
+ python3 $filename 1> /dev/null
713
+ test_status=$?
714
+ if [ $test_status -eq 0 ]; then
715
+ echo ":white_check_mark: Successfully ran test: $filename" >> $GITHUB_STEP_SUMMARY
716
+ else
717
+ echo ":x: Test failed (failed to execute): $filename" >> $GITHUB_STEP_SUMMARY
718
+ test_err_sum=$((test_err_sum+1))
719
+ fi
720
+ done
721
+ set -e # Re-enable exit code error checking
722
+ if [ ! $test_err_sum -eq 0 ]; then
723
+ echo "::error::${test_err_sum} tests failed. See step summary for a list of failures"
724
+ exit 1
725
+ fi
726
+ shell : bash
727
+
691
728
- name : Submit to ${{ inputs.target }}
692
729
# The full set of tests used by this step is currently only supported on
693
730
# Quantinuum. The other supported tests are tested by the step above.
0 commit comments