-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (58 loc) · 2.14 KB
/
test.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
name: Tests
on:
push:
branches: [ammr4-beta]
pull_request:
workflow_dispatch:
inputs:
use-custom-anybodycon:
type: boolean
description: 'Use a custom version of AnyBody from AMS build system.'
default: false
custom-anybodycon-name:
description: 'Name of the custom AnyBody version to use. (E.g. path on the I:\ drive)'
required: false
default: 'AnyBody.7.5-CI-master.AnyBody.8.0.x/AnyBodyCon.exe'
custom-pytest-arg:
description: 'Specify which tests in `Tests` folder to run. E.g. `test_example.any`. Default is entire test suite.'
required: false
default: ''
concurrency:
group: Test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
if: ${{ !github.event.pull_request.head.repo.fork && ( github.repository == 'anybody/ammr4-beta') }}
strategy:
fail-fast: false
matrix:
test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
env:
# Triggers a warning at 20 deg
ShortestPathMaxAngle: 0.3491
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.1
with:
environments: test
cache-write: ${{ github.event_name == 'push' && ( github.ref_name == 'ammr4-beta' )}}
activate-environment: test
- name: Patch with custom version
if: inputs.use-custom-anybodycon
uses: ./.github/actions/custom-anybodycon
with:
custom-anybodycon: ${{ inputs.custom-anybodycon-name }}
connection-string: ${{ secrets.AZURE_CONN_STR }}
target-path: .pixi/envs/test/bin/AnyBodyCon.exe
- name: Run AMMR tests
run: |
cd Tests
pytest -n auto --dist worksteal `
--splits 20 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration `
--durations=10 `
--runslow
${{ github.event.inputs.custom-pytest-arg || '' }}
env:
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }}
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}