File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change 75
75
export PKG_CONFIG_PATH=$(readlink -f "precice-core/build")
76
76
tox
77
77
78
- setup_test :
79
- name : Run setup test
80
- runs-on : ubuntu-latest
81
- steps :
82
- - name : Checkout Repository
83
- uses : actions/checkout@v2
84
- - uses : actions/setup-python@v1
85
- - name : Install OpenMPI, CMake, Boost library, Eigen and pkg-config
86
- run : |
87
- sudo apt-get -yy update
88
- sudo apt-get install -y libopenmpi-dev cmake libboost-all-dev libeigen3-dev pkg-config
89
- sudo rm -rf /var/lib/apt/lists/*
90
- - uses : BSFishy/pip-action@v1
91
- with :
92
- packages : toml
93
- - name : Checkout precice and make required files discoverable
94
- run : |
95
- git clone --branch develop https://github.com/precice/precice.git precice-core
96
- mkdir -p precice
97
- cp precice-core/src/precice/Participant.hpp precice/Participant.hpp
98
- cp precice-core/src/precice/Tooling.hpp precice/Tooling.hpp
99
- cp precice-core/src/precice/Tooling.cpp precice/Tooling.cpp
100
- cd precice-core
101
- mkdir build && cd build
102
- cmake .. -DPRECICE_FEATURE_MPI_COMMUNICATION=OFF -DPRECICE_FEATURE_PETSC_MAPPING=OFF -DPRECICE_FEATURE_PYTHON_ACTIONS=OFF -DBUILD_TESTING=OFF
103
- - name : Install dependencies
104
- run : |
105
- python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin
106
- - name : Run setup test
107
- env :
108
- PKG_CONFIG_PATH : " precice-core/build"
109
- PKG_CONFIG_SYSTEM_INCLUDE_PATH : 1
110
- run : |
111
- export CFLAGS=-I$GITHUB_WORKSPACE
112
- python3 setup.py test
113
-
114
78
pip_install :
115
79
name : Run pip install
116
80
needs : [setup_test]
You can’t perform that action at this time.
0 commit comments