Skip to content

Commit

Permalink
split GA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rok-cesnovar committed Nov 18, 2020
1 parent 34a8f8b commit 6130f13
Showing 1 changed file with 56 additions and 16 deletions.
72 changes: 56 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
- 'README.md'
- 'RELEASE-NOTES.txt'
jobs:
full:
name: Full unit tests
prim-rev:
name: prim and rev unit tests
runs-on: windows-latest

steps:
Expand All @@ -27,31 +27,71 @@ jobs:
run: Start-Process -FilePath ./R35.exe -ArgumentList /VERYSILENT -NoNewWindow -Wait
- name: PATH Setup
shell: powershell
run: echo "::add-path::C:/Rtools/bin"
- name: PATH Setup
run: echo "C:/Rtools/bin;C:/Rtools/mingw_64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Print g++ & make version and path
shell: powershell
run: |
g++ --version
Get-Command g++ | Select-Object -ExpandProperty Definition
mingw32-make --version
Get-Command mingw32-make | Select-Object -ExpandProperty Definition
- name: Build Math libs
shell: powershell
run: echo "::add-path::C:/Rtools/mingw_64/bin"
- name: Print g++ version
run: mingw32-make -f make/standalone math-libs
- name: Add TBB to PATH
shell: powershell
run: g++ --version
- name: Print g++ path
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Run prim and rev unit tests
shell: powershell
run: Get-Command g++ | Select-Object -ExpandProperty Definition
- name: Print mingw32-make version
run:
python.exe runTests.py -j2 test/unit/*_test.cpp
python.exe runTests.py -j2 test/unit/math/*_test.cpp
python.exe runTests.py -j2 test/unit/prim
python.exe runTests.py -j2 test/unit/rev
python.exe runTests.py -j2 test/unit/memory

- name: Upload gtest_output xml
uses: actions/upload-artifact@v2
if: failure()
with:
name: gtest_outputs_xml
path: '**/*_test.xml'
fwd-mix:
name: fwd and mix unit tests
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '2.x'
- name: Download RTools
run: Invoke-WebRequest -Uri https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe -OutFile ./R35.exe
- name: Install RTools
shell: powershell
run: Start-Process -FilePath ./R35.exe -ArgumentList /VERYSILENT -NoNewWindow -Wait
- name: PATH Setup
shell: powershell
run: mingw32-make --version
- name: Print mingw32-make path
run: echo "C:/Rtools/bin;C:/Rtools/mingw_64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Print g++ & make version and path
shell: powershell
run: Get-Command mingw32-make | Select-Object -ExpandProperty Definition
run: |
g++ --version
Get-Command g++ | Select-Object -ExpandProperty Definition
mingw32-make --version
Get-Command mingw32-make | Select-Object -ExpandProperty Definition
- name: Build Math libs
shell: powershell
run: mingw32-make -f make/standalone math-libs
- name: Add TBB to PATH
shell: powershell
run: echo "::add-path::D:/a/math/math/lib/tbb"
- name: Run full unit tests
run: echo "D:/a/math/math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Run prim and rev unit tests
shell: powershell
run: python.exe runTests.py -j2 test/unit -f test/unit/
run:
python.exe runTests.py -j2 test/unit/fwd
python.exe runTests.py -j2 test/unit/mix

- name: Upload gtest_output xml
uses: actions/upload-artifact@v2
if: failure()
Expand Down

0 comments on commit 6130f13

Please sign in to comment.