-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (41 loc) · 1.32 KB
/
test-forks.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
name: Tests (Forks)
on:
pull_request_target:
types: [labeled]
concurrency:
group: test-forks-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
if: ${{ contains(github.event.pull_request.labels.*.name, 'safe to test') && github.event.pull_request.head.repo.fork }}
strategy:
fail-fast: false
matrix:
test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: prefix-dev/setup-pixi@v0.8.1
id: pixi
continue-on-error: true
with:
environments: test
cache: false
- name: try pixi-setup recover
if: steps.pixi.outcome != 'success'
run: |
Add-Content $env:GITHUB_PATH "$HOME/.pixi/bin"
& $HOME/.pixi/bin/pixi.exe install
- name: Run AMMR tests
shell: pixi run -e test pwsh -Command {0}
run: |
cd Tests
pytest -n 5 --dist worksteal `
--splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration `
--durations=10 `
--runslow
env:
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }}
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}