-
Notifications
You must be signed in to change notification settings - Fork 189
52 lines (51 loc) · 1.82 KB
/
run_system_tests.yml
File metadata and controls
52 lines (51 loc) · 1.82 KB
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
51
52
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@v4
- name: Import DAQmx config
run: C:\nidaqmxconfig\targets\win64U\x64\msvc-14.0\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini
- name: Cache virtualenvs
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
.venv
.tox
key: run-system-tests-${{ runner.os }}-${{ matrix.configuration }}-${{ hashFiles('poetry.lock') }}
- 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@v4
with:
name: test_results_system_${{ matrix.configuration }}
path: test_results/*.xml
if: always()