Skip to content

Commit 7f53b90

Browse files
committedFeb 27, 2021
Merge remote-tracking branch 'origin/develop' into feature/variadic-integrate-1d
2 parents 403987f + 1bbf76c commit 7f53b90

File tree

109 files changed

+9038
-1410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+9038
-1410
lines changed
 

‎.github/workflows/main.yml

+50-5
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
with:
6464
name: gtest_outputs_xml
6565
path: '**/*_test.xml'
66-
fwd-mix:
67-
name: fwd and mix tests
66+
fwd-non-fun-mix:
67+
name: fwd tests and non-fun mix tests
6868
runs-on: windows-latest
6969

7070
steps:
@@ -93,11 +93,56 @@ jobs:
9393
- name: Add TBB to PATH
9494
shell: powershell
9595
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
96-
- name: Run fwd and mix unit tests
96+
- name: Run fwd unit tests and all the mix tests except those in mix/fun
9797
shell: powershell
9898
run: |
99-
python.exe runTests.py -j2 test/unit/math/fwd
100-
python.exe runTests.py -j2 test/unit/math/mix
99+
python.exe runTests.py test/unit/math/fwd
100+
python.exe runTests.py test/unit/math/mix/core
101+
python.exe runTests.py test/unit/math/mix/functor
102+
python.exe runTests.py test/unit/math/mix/meta
103+
python.exe runTests.py test/unit/math/mix/prob
104+
python.exe runTests.py test/unit/math/mix/*_test.cpp
105+
106+
- name: Upload gtest_output xml
107+
uses: actions/upload-artifact@v2
108+
if: failure()
109+
with:
110+
name: gtest_outputs_xml
111+
path: '**/*_test.xml'
112+
mix-fun:
113+
name: mix/fun tests
114+
runs-on: windows-latest
115+
116+
steps:
117+
- uses: actions/checkout@v2
118+
- uses: actions/setup-python@v2
119+
with:
120+
python-version: '2.x'
121+
- name: Download RTools
122+
run: Invoke-WebRequest -Uri https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe -OutFile ./R35.exe
123+
- name: Install RTools
124+
shell: powershell
125+
run: Start-Process -FilePath ./R35.exe -ArgumentList /VERYSILENT -NoNewWindow -Wait
126+
- name: PATH Setup
127+
shell: powershell
128+
run: echo "C:/Rtools/bin;C:/Rtools/mingw_64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
129+
- name: Print g++ & make version and path
130+
shell: powershell
131+
run: |
132+
g++ --version
133+
Get-Command g++ | Select-Object -ExpandProperty Definition
134+
mingw32-make --version
135+
Get-Command mingw32-make | Select-Object -ExpandProperty Definition
136+
- name: Build Math libs
137+
shell: powershell
138+
run: mingw32-make -f make/standalone math-libs
139+
- name: Add TBB to PATH
140+
shell: powershell
141+
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
142+
- name: Run mix/fun unit tests
143+
shell: powershell
144+
run: |
145+
python.exe runTests.py test/unit/math/mix/fun
101146
102147
- name: Upload gtest_output xml
103148
uses: actions/upload-artifact@v2

‎runTests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def isWin():
139139

140140

141141
batchSize = 20 if isWin() else 200
142-
142+
jumboSize = 5 if isWin() else 15
143143

144144
def mungeName(name):
145145
"""Set up the makefile target name"""
@@ -188,7 +188,7 @@ def generateJumboTests(paths):
188188
stopErr("The --jumbo flag is only allowed with top level folders.", 10)
189189
for jf in jumbo_files_to_create:
190190
tests_in_subfolder = sorted([x for x in os.listdir(jf) if x.endswith(testsfx)])
191-
chunked_tests = divide_chunks(tests_in_subfolder, 15)
191+
chunked_tests = divide_chunks(tests_in_subfolder, jumboSize)
192192
i = 0
193193
for tests in chunked_tests:
194194
i = i + 1

0 commit comments

Comments
 (0)