-
Notifications
You must be signed in to change notification settings - Fork 9
104 lines (103 loc) · 3.39 KB
/
test-igor-workflow.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Test Igor Workflow
run-name: Test Igor Workflow
env:
# if this environment variable is set it will use the igor version from
# C:\Program Files\WaveMetrics\Igor Pro 9 Folder\IgorBinaries_x64_${CI_IGOR_REVISION}
CI_IGOR_REVISION: "r56565"
on:
workflow_call:
inputs:
job_name:
required: false
type: string
default: Run
description: The name of the main job
overwrite_job_name:
required: false
type: boolean
default: false
description: |
If set to true it will replace the name of the main job with the content of job_name
experiment:
required: true
type: string
description: The path to the Igor experiment file
target:
required: false
default: "['self-hosted', 'Windows', 'IgorPro']"
type: string
description: A JSON string with the tags for the target runner
installer_artifact_name:
required: false
default: BuildInstaller-dev-assets
type: string
description: The name of the artifact that holds the installer
installer_flags:
required: false
default: "-s installer"
type: string
description: The flags that should be used for the installer
artifact_name:
required: true
type: string
description: The name of the artifact that will be uploaded
expensive_checks:
required: false
default: "0"
type: string
description: Sets environment variable CI_EXPENSIVE_CHECKS
instrument_tests:
required: false
default: "0"
type: string
description: Sets environment variable CI_INSTRUMENT_TESTS
timeout_minutes:
required: false
default: 360
type: number
description: Defines the job timeout in minutes
defaults:
run:
shell: bash
jobs:
Test:
name: ${{ inputs.overwrite_job_name && inputs.job_name || 'Run' }}
runs-on: ${{ fromJson(inputs.target) }}
timeout-minutes: ${{ inputs.timeout_minutes }}
env:
CI_EXPENSIVE_CHECKS: ${{ inputs.expensive_checks }}
CI_INSTRUMENT_TESTS: ${{ inputs.instrument_tests }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Initial repo config
run: tools/initial-repo-config.sh
- name: Download artifacts
if: inputs.installer_artifact_name != ''
uses: actions/download-artifact@v4
continue-on-error: false
with:
name: ${{ inputs.installer_artifact_name }}
- name: Clean MIES installation
run: tools/clean_mies_installation.sh ${{ inputs.installer_flags }}
- name: Test experiment ${{ inputs.experiment }}
run: tools/autorun-test.sh -p ${{ inputs.experiment }} -v IP_9_64
- name: Gather log files and crash dumps
if: always()
run: tools/gather-logfiles-and-crashdumps.sh
- name: upload artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: ${{ inputs.artifact_name }}
path: |
Packages/tests/**/*-V2.nwb
Packages/tests/**/JU_*.xml
Packages/tests/**/Cobertura_*.xml
Packages/tests/**/*.log
Diagnostics
**/*.jsonl
!Packages/tests/**/input
if-no-files-found: error