Commit 2b5cbf6 1 parent 7996bf6 commit 2b5cbf6 Copy full SHA for 2b5cbf6
File tree 2 files changed +48
-2
lines changed
2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,33 @@ jobs:
157
157
# copy .\build\${{ matrix.project }}.bin D:\
158
158
# echo "Programmed the board"
159
159
160
+ # - name: Copy artifact to hardware drive
161
+ # run: |
162
+ # config=$(jq -r '.${{ matrix.project }}' config.json)
163
+ # drive_path=$(echo $config | jq -r '.drive_path')
164
+ # echo "Programming the board"
165
+ # copy .\build\${{ matrix.project }}.bin $drive_path
166
+ # echo "Programmed the board"
167
+
168
+ - name : Read configuration from JSON
169
+ id : config
170
+ run : |
171
+ config=$(jq -r '.${{ matrix.project }}' config.json)
172
+ echo "::set-output name=serialport::$(echo $config | jq -r '.serialport')"
173
+ echo "::set-output name=device_name::$(echo $config | jq -r '.device_name')"
174
+ echo "::set-output name=platform_name::$(echo $config | jq -r '.platform_name')"
175
+ echo "::set-output name=serial_com_type::$(echo $config | jq -r '.serial_com_type')"
176
+
160
177
- name : Run tests
161
178
run : |
162
- cd projects/${{ matrix.project }}/tests
163
- pytest -c pytest.ini --serialport "COM7" --device_name "AD4052" --platform_name "SDP-K1" --serial_com_type "USE_PHY_COM_PORT"
179
+ cd projects/${{ matrix.project }}/tests
180
+ pytest -c pytest.ini --serialport "${{ steps.config.outputs.serialport }}" --device_name "${{ steps.config.outputs.device_name }}" --platform_name "${{ steps.config.outputs.platform_name }}" --serial_com_type "${{ steps.config.outputs.serial_com_type }}"
181
+
182
+
183
+ # - name: Run tests
184
+ # run: |
185
+ # cd projects/${{ matrix.project }}/tests
186
+ # pytest -c pytest.ini --serialport "COM7" --device_name "AD4052" --platform_name "SDP-K1" --serial_com_type "USE_PHY_COM_PORT"
164
187
165
188
166
189
Original file line number Diff line number Diff line change
1
+ {
2
+ "ad405x_iio" : {
3
+ "serialport" : " COM7" ,
4
+ "device_name" : " AD4052" ,
5
+ "platform_name" : " SDP-K1" ,
6
+ "serial_com_type" : " USE_PHY_COM_PORT" ,
7
+ "drive_path" : " D:\\ "
8
+ },
9
+ "ad469x_iio" : {
10
+ "serialport" : " COM8" ,
11
+ "device_name" : " AD4692" ,
12
+ "platform_name" : " SDP-K2" ,
13
+ "serial_com_type" : " USE_USB_COM_PORT" ,
14
+ "drive_path" : " E:\\ "
15
+ },
16
+ "ltc2672_iio" : {
17
+ "serialport" : " COM9" ,
18
+ "device_name" : " LTC2672" ,
19
+ "platform_name" : " SDP-K3" ,
20
+ "serial_com_type" : " USE_PHY_COM_PORT" ,
21
+ "drive_path" : " F:\\ "
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments