Skip to content

Commit 7a4ea21

Browse files
committed
Update mix parallelism
1 parent 478da34 commit 7a4ea21

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- { os: ubuntu-24.04-arm, label: rev, tests: 'test/unit/math/rev' }
3434
- { os: windows-latest, label: fwd, tests: 'test/unit/math/fwd' }
3535
- { os: ubuntu-24.04-arm, label: fwd, tests: 'test/unit/math/fwd' }
36-
- { os: windows-latest, label: 'non-fun mix', tests: 'test/unit/math/mix/core test/unit/math/mix/meta test/unit/math/mix/prob test/unit/math/mix/*_test.cpp' }
37-
- { os: ubuntu-24.04-arm, label: 'non-fun mix', tests: 'test/unit/math/mix/core test/unit/math/mix/meta test/unit/math/mix/prob test/unit/math/mix/*_test.cpp' }
36+
- { os: windows-latest, label: 'non-fun mix', tests: 'test/unit/math/mix/core test/unit/math/mix/meta test/unit/math/mix/*_test.cpp' }
37+
- { os: ubuntu-24.04-arm, label: 'non-fun mix', tests: 'test/unit/math/mix/core test/unit/math/mix/meta test/unit/math/mix/*_test.cpp' }
3838

3939
steps:
4040
- uses: actions/checkout@v4
@@ -76,7 +76,7 @@ jobs:
7676
path: '**/*_test.xml'
7777

7878
mix-fun:
79-
name: mix/fun tests ${{ matrix.config.group }} (${{ matrix.config.os }})
79+
name: mix fun and prob tests ${{ matrix.config.group }} (${{ matrix.config.os }})
8080
runs-on: ${{ matrix.config.os }}
8181
strategy:
8282
matrix:
@@ -120,17 +120,17 @@ jobs:
120120
- name: Run mix/fun unit tests
121121
shell: pwsh
122122
run: |
123-
$MixFunTests = Get-ChildItem -Path test\unit\math\mix\fun\* -Include *.cpp | Resolve-Path -Relative
124-
$NumberTests = $MixFunTests.Length
123+
$MixFunProbTests = Get-ChildItem -Path test\unit\math\mix\fun\*, test\unit\math\mix\prob\* -Include *.cpp | Resolve-Path -Relative
124+
$NumberTests = $MixFunProbTests.Length
125125
$QuarterNumberTests = [math]::Floor($NumberTests / 4)
126126
127-
$MixFunTests1 = $MixFunTests[0..($QuarterNumberTests - 1)]
128-
$MixFunTests2 = $MixFunTests[$QuarterNumberTests..(2 * $QuarterNumberTests - 1)]
129-
$MixFunTests3 = $MixFunTests[(2 * $QuarterNumberTests)..(3 * $QuarterNumberTests - 1)]
130-
$MixFunTests4 = $MixFunTests[(3 * $QuarterNumberTests)..($NumberTests - 1)]
131-
$MixFunTestsArray = @($MixFunTests1, $MixFunTests2, $MixFunTests3, $MixFunTests3)
127+
$MixFunProbTests1 = $MixFunProbTests[0..($QuarterNumberTests - 1)]
128+
$MixFunProbTests2 = $MixFunProbTests[$QuarterNumberTests..(2 * $QuarterNumberTests - 1)]
129+
$MixFunProbTests3 = $MixFunProbTests[(2 * $QuarterNumberTests)..(3 * $QuarterNumberTests - 1)]
130+
$MixFunProbTests4 = $MixFunProbTests[(3 * $QuarterNumberTests)..($NumberTests - 1)]
131+
$MixFunProbTestsArray = @($MixFunProbTests1, $MixFunProbTests2, $MixFunProbTests3, $MixFunProbTests4)
132132
133-
python runTests.py $MixFunTestsArray[(${{ matrix.config.group }} - 1)]
133+
python runTests.py -j2 $MixFunProbTestsArray[(${{ matrix.config.group }} - 1)]
134134
135135
- name: Upload gtest_output xml
136136
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)