-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (43 loc) · 1.3 KB
/
run_g_tests.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
48
49
50
name: Run G Tests
on:
workflow_call:
workflow_dispatch:
jobs:
run_g_tests:
name: Run G Tests LV${{ matrix.version }}
runs-on:
- self-hosted
- windows
- x64
- rdss-measlinkbot-win-10-lv64
strategy:
matrix:
version: ["2021", "2022", "2023"]
include:
- version: 2021
port: "3364"
- version: 2022
port: "3365"
- version: 2023
port: "3366"
timeout-minutes: 30
steps:
- name: Enable git long paths
run: git config --global core.longpaths true
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Open LabVIEW ${{ matrix.version }}
run: |
Start-Process "C:\\Program Files\\National Instruments\\LabVIEW ${{ matrix.version }}\\LabVIEW.exe"
Start-Sleep 60
- name: Run G Tests
run:
python ${{runner.workspace}}/measurement-plugin-labview/Source/Tests/run_tests.py --labview-path "C:\Program Files\National Instruments\LabVIEW ${{ matrix.version }}\LabVIEW.exe" --port-number ${{ matrix.port }}
timeout-minutes: 20
- name: Close LabVIEW ${{ matrix.version }}
run:
wmic process where name="LabVIEW.exe" call terminate
shell: cmd
if: always()