-
Notifications
You must be signed in to change notification settings - Fork 161
45 lines (44 loc) · 1.5 KB
/
run_system_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
name: Run system tests
on:
workflow_call:
workflow_dispatch:
jobs:
run_system_tests:
name: Run system tests
runs-on:
- self-hosted
- windows
- x64
- rdss-nidaqmxbot-${{ matrix.configuration }}
strategy:
matrix:
configuration: ["win-10-py32", "win-10-py64"]
# Fail-fast skews the pass/fail ratio and seems to make pytest produce
# incomplete JUnit XML results.
fail-fast: false
timeout-minutes: 90
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Import DAQmx config
run: C:\nidaqmxconfig\targets\win64U\x64\msvc-14.0\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini
- name: Install dependencies
run: poetry install
- name: Run system tests
run: poetry run tox
- name: Rename test results
# TODO: Add Git Bash to the path on self-hosted Windows runners
run: Get-ChildItem test_results/*.xml | Rename-Item -NewName { $_.Name -replace '.xml','-${{ matrix.configuration }}.xml' }
if: always() && runner.os == 'Windows'
- name: Rename test results
run: |
for result in test_results/*.xml; do
mv $result ${result%.xml}-${{ matrix.configuration }}.xml
done
if: always() && runner.os != 'Windows'
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: test_results
path: test_results/*.xml
if: always()