Skip to content

CI: macos: cd up one more dir. #75

CI: macos: cd up one more dir.

CI: macos: cd up one more dir. #75

Workflow file for this run

name: Test commands
on: [push, pull_request]
jobs:
test_vfgen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install
run: |
sudo apt-get -y update && sudo apt-get -y install lsb-release
lsb_release -irc
echo "Installing vfgen"
sudo apt-get -y install cmake libmxml-dev libginac-dev
cd cmake_build
cmake ../src
make
make install
cd ..
- name: test_boostodeint
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test boostodeint]')"
run: |
cd tests/test_boostodeint
run_test_boostodeint_default_noparams.sh
run_test_boostodeint_default_params.sh
run_test_boostodeint_implicit_noparams.sh
run_test_boostodeint_implicit_params.sh
cd ../..
- name: test_cvode7
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test cvode7]')"
run: |
cd tests/test_cvode7
bash install_cvode7.sh
bash run_test.sh
cd ../..
- name: test_dde_solver
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test dde_solver]')"
run: |
cd tests/test_dde_solver
sudo bash run_test.sh
cd ../..
- name: test_evf
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test evf]')"
run: |
cd tests/test_evf
sudo bash run_test.sh
cd ../..
- name: test_gsl
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test gsl]')"
run: |
cd tests/test_gsl
sudo bash run_test.sh
cd ../..
- name: test_help
run: |
vfgen help help
- name: test_julia
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test julia]')"
run: |
cd tests/test_julia
bash run_test.sh
cd ../..
- name: test_lsoda
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test lsoda]')"
run: |
cd tests/test_lsoda
bash download_lsoda.sh
bash run_test_linearosc.sh
bash run_test_pidecay.sh
cd ../..
- name: test_octave
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test octave]')"
run: |
cd tests/test_octave
sudo bash run_test.sh
cd ../..
- name: test_pygsl
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test pygsl]')"
run: |
cd tests/test_pygsl
sudo bash run_test.sh
cd ../..
- name: test_radau5
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test radau5]')"
run: |
cd tests/test_radau5
bash run_test.sh
cd ../..
- name: test_scilab
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test scilab]')"
run: |
cd tests/test_scilab
sudo bash run_test.sh
cd ..
- name: test_scipy
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test scipy]')"
run: |
cd tests/test_scipy
sudo bash run_test.sh
cd ..
- name: setup_r
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test r]')"
uses: r-lib/actions/setup-r@v2
- name: test_r
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test r]')"
run: |
cd tests/test_r
bash run_test.sh
cd ../..
macos_latest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install
run: |
echo "Installing ginac with brew"
brew install ginac
#
echo "Installing mini-xml 3.3.1 from tarball"
mkdir install-mxml
cd install-mxml
curl -L -s -S -O https://github.com/michaelrsweet/mxml/releases/download/v3.3.1/mxml-3.3.1.tar.gz
tar xf mxml-3.3.1.tar.gz
cd mxml-3.3.1
./configure
make
sudo make install
cd ../..
#
echo "Installing vfgen"
cd cmake_build
cmake ../src
make
sudo make install
cd ..
- name: test_help
run: |
vfgen help help