-
Notifications
You must be signed in to change notification settings - Fork 87
47 lines (43 loc) · 1.7 KB
/
test_zcu111.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Install the QICK library on the runner (a QICK board) and run tests.
# The FPGA can only be accessed as root, so the tests must run with sudo.
# This pollutes the repo with files owned by root, which interfere with the "clean" step in the checkout action.
# We therefore do the clean manually (with sudo) before checkout.
name: Test ZCU111
on:
workflow_dispatch:
pull_request:
paths:
- 'qick_demos/**'
- 'qick_lib/**'
- '**.py'
permissions:
contents: write
jobs:
run_test:
runs-on: [zcu111]
steps:
- name: Clean repo
continue-on-error: true
run: |
sudo git clean -ffdx
sudo git reset --hard HEAD
- uses: actions/checkout@v4
- name: Install package
run: |
sudo -E -H python -m pip install -e .
- name: Test notebooks
run: |
sudo -E python -m pytest --nbmake --overwrite ./qick_demos/00_Send_receive_pulse.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/01_Phase_coherent_readout.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/02_Sweeping_variables.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/03_Conditional_logic.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/04_Reading_Math_Writing.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/05_PhaseCoherence_QickProgram.ipynb
# sudo -E python -m pytest --nbmake ./qick_demos/06_qubit_demos.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/07_Sweep_ND_variables.ipynb
sudo -E python -m pytest --nbmake ./qick_demos/08_Special_buffers.ipynb
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: demo_notebooks
path: qick_demos/*.ipynb