-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1079 from ICB-DCM/release_0.11.0
Release 0.11.0
- Loading branch information
Showing
656 changed files
with
113,244 additions
and
32,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: C++ testsuite / Ubuntu | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: _ | ||
|
||
# TODO: prepare image with more deps preinstalled | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ENABLE_GCOV_COVERAGE: TRUE | ||
CI_SONARCLOUD: TRUE | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- run: git fetch --prune --unshallow | ||
|
||
- run: echo "::set-env name=AMICI_DIR::$(pwd)" | ||
- run: echo "::set-env name=BNGPATH::${AMICI_DIR}/ThirdParty/BioNetGen-2.3.2" | ||
|
||
# sonar cloud | ||
- run: echo "::set-env name=SONAR_SCANNER_VERSION::4.2.0.1873" | ||
- run: echo "::set-env name=SONAR_SCANNER_HOME::$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" | ||
- run: echo "::set-env name=SONAR_SCANNER_OPTS::-server" | ||
- run: echo "::add-path::${SONAR_SCANNER_HOME}/bin" | ||
- run: echo "::add-path::$HOME/.sonar/build-wrapper-linux-x86" | ||
|
||
# TODO: add to ci image | ||
- name: Install sonarcloud tools | ||
run: | | ||
sudo apt install nodejs curl unzip \ | ||
&& curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip \ | ||
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip \ | ||
&& unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ \ | ||
&& curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \ | ||
https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip \ | ||
&& unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/ \ | ||
# install amici dependencies | ||
- name: apt | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
cmake \ | ||
g++ \ | ||
libatlas-base-dev \ | ||
libboost-serialization-dev \ | ||
libhdf5-serial-dev \ | ||
python3-dev \ | ||
swig | ||
- name: Build suitesparse | ||
run: | | ||
scripts/buildSuiteSparse.sh | ||
- name: Build sundials | ||
run: | | ||
scripts/buildSundials.sh | ||
- name: Build cpputest | ||
run: | | ||
scripts/buildCpputest.sh | ||
- name: Build cpputest | ||
run: | | ||
scripts/buildBNGL.sh | ||
- name: Build AMICI | ||
run: | | ||
CI_SONARCLOUD=TRUE scripts/buildAmici.sh | ||
- name: Cache sonar files | ||
id: cache-sonar | ||
uses: actions/cache@v1 | ||
with: | ||
path: sonar_cache | ||
key: ${{ runner.os }}-sonar_cache | ||
|
||
- name: C++ tests | ||
run: | | ||
scripts/run-cpputest.sh | ||
- name: gcov | ||
run: cd build && gcov CMakeFiles/amici.dir/src/*.o | ||
|
||
- name: Install python package | ||
run: scripts/installAmiciSource.sh | ||
|
||
- name: Python tests | ||
run: | | ||
source build/venv/bin/activate \ | ||
&& pip3 install coverage pytest pytest-cov \ | ||
&& pytest \ | ||
--ignore-glob=*petab* \ | ||
--cov=amici \ | ||
--cov-report=xml:"${AMICI_DIR}/build/coverage_py.xml" \ | ||
--cov-append \ | ||
${AMICI_DIR}/python/tests | ||
- name: Run sonar-scanner | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
sonar-scanner \ | ||
-Dsonar.cfamily.build-wrapper-output=bw-output \ | ||
-Dsonar.projectVersion="$(git describe --abbrev=4 --dirty=-dirty --always --tags | tr -d '\n')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: C++ testsuite / Valgrind / Ubuntu | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
- feature_1053_sonarcloud | ||
|
||
|
||
jobs: | ||
build: | ||
name: _ | ||
|
||
# TODO: prepare image with more deps preinstalled | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- run: git fetch --prune --unshallow | ||
|
||
# install amici dependencies | ||
- name: apt | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
cmake \ | ||
g++ \ | ||
libatlas-base-dev \ | ||
libboost-serialization-dev \ | ||
libhdf5-serial-dev \ | ||
swig \ | ||
valgrind | ||
- name: Build suitesparse | ||
run: | | ||
scripts/buildSuiteSparse.sh | ||
- name: Build sundials | ||
run: | | ||
scripts/buildSundials.sh | ||
- name: Build cpputest | ||
run: | | ||
scripts/buildCpputest.sh | ||
- name: Build AMICI | ||
# TODO: should get rid of having to install numpy before | ||
run: | | ||
pip3 install numpy \ | ||
&& scripts/buildAmici.sh | ||
- name: C++ tests / Valgrind | ||
run: | | ||
scripts/run-valgrind.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.