Skip to content

add include file and instruction for NLTRAN data items #15

add include file and instruction for NLTRAN data items

add include file and instruction for NLTRAN data items #15

Workflow file for this run

name: Torsten Model tests
on:
pull_request:
branches: [ develop, master ]
push:
branches: [ develop, master, workflow ]
paths-ignore:
- 'doygen/**'
- 'hooks/**'
- 'licenses/**'
- 'LICENSE.md'
- 'README.md'
- 'RELEASE-NOTES.txt'
workflow_dispatch:
inputs:
branch:
description: 'The branch to build'
required: true
default: 'develop'
jobs:
nix:
name: ubuntu/macos tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'"
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Print g++ & make version and path
shell: bash
run: |
g++ --version
make --version
- name: Add TBB to PATH
shell: bash
run: echo "./cmdstan/stan/lib/stan_math/lib/tbb" >> $GITHUB_PATH
- name: Add Torsten to PATH
shell: bash
run: echo "./cmdstan/stan/lib/stan_math/stan/math/torsten" >> $GITHUB_PATH
- name: Build Torsten example model pk2cpt
working-directory: ./cmdstan
shell: bash
run: |
make -j2 ../example-models/pk2cpt/pk2cpt
- name: Run Torsten example model pk2cpt
working-directory: ./example-models/pk2cpt
shell: bash
run: |
./pk2cpt sample data file=pk2cpt.data.R init=pk2cpt.init.R
- name: Upload Torsten example model output pk2cpt
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-output
path: './example-models/pk2cpt/output.csv'
# win:
# name: windows tests
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# with:
# python-version: '3.x'
# - uses: r-lib/actions/setup-r@v2
# with:
# r-version: 4.1.3
# - name: Set path for Rtools40
# if: runner.os == 'Windows'
# run: echo "C:/rtools40/usr/bin;C:/rtools40/mingw64/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# - name: Install mingw32-make and check toolchain path
# if: runner.os == 'Windows'
# run: |
# pacman -Syu mingw-w64-x86_64-make --noconfirm
# g++ --version
# Get-Command g++ | Select-Object -ExpandProperty Definition
# mingw32-make --version
# Get-Command mingw32-make | Select-Object -ExpandProperty Definition
# shell: powershell
# - name: Add TBB to PATH
# shell: powershell
# run: echo "D:/a/Torsten/Torsten/cmdstan/stan/lib/stan_math/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# - name: Add Torsten to PATH
# shell: powershell
# run: echo "D:/a/Torsten/Torsten/cmdstan/stan/lib/stan_math/stan/math/torsten" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# - name: Build Torsten example model pk2cpt
# shell: powershell
# run: python runTests.py -j2 stan/math/torsten/test/unit -f stan/math/torsten/test/unit
# - name: Upload gtest_output xml
# uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: gtest_outputs_xml
# path: 'stan/math/torsten/**/*_test.xml'