forked from AMICI-dev/AMICI
-
Notifications
You must be signed in to change notification settings - Fork 0
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 AMICI-dev#2266 from dweindl/release_0.21.0
- Loading branch information
Showing
171 changed files
with
6,124 additions
and
4,505 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Install AMICI dependencies for MacOS | ||
description: Install AMICI dependencies for MacOS | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# use all available cores | ||
- run: echo "AMICI_PARALLEL_COMPILE=" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# AMICI repository root | ||
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# BioNetGen path | ||
- run: echo "BNGPATH=${AMICI_DIR}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# CMake hints | ||
# Ensure CMake is using the python version that we will use for the python tests later on | ||
- run: echo "PYTHON_EXECUTABLE=${Python3_ROOT_DIR}/bin/python3" >> $GITHUB_ENV | ||
shell: bash | ||
- run: echo "OpenMP_ROOT=$(brew --prefix)/opt/libomp" >> $GITHUB_ENV | ||
shell: bash | ||
- run: echo "BOOST_ROOT=$(brew --prefix)/opt/boost" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# install amici dependencies | ||
- name: homebrew | ||
run: brew install hdf5 swig gcc libomp boost | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ jobs: | |
run: | | ||
source ./build/venv/bin/activate \ | ||
&& pytest --cov-report=xml:coverage.xml \ | ||
--cov=./ python/tests/test_*petab*.py | ||
--cov=./ python/tests/test_*petab*.py python/tests/petab/ | ||
# run test models | ||
- name: Run PEtab test suite | ||
|
@@ -85,6 +85,7 @@ jobs: | |
tests/petab_test_suite/ | ||
- name: Codecov | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
ubuntu-cpp-python-tests: | ||
|
@@ -65,6 +66,7 @@ jobs: | |
${AMICI_DIR}/python/tests/test_splines.py | ||
- name: Codecov Python | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -84,6 +86,7 @@ jobs: | |
&& lcov -a coverage_cpp.info -a coverage_py.info -o coverage.info | ||
- name: Codecov CPP | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -92,6 +95,7 @@ jobs: | |
fail_ci_if_error: true | ||
|
||
- name: Run sonar-scanner | ||
if: ${{ env.SONAR_TOKEN != '' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
@@ -137,6 +141,7 @@ jobs: | |
${AMICI_DIR}/python/tests/test_splines_short.py | ||
- name: Codecov Python | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -156,6 +161,7 @@ jobs: | |
&& lcov -a coverage_cpp.info -a coverage_py.info -o coverage.info | ||
- name: Codecov CPP | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -164,6 +170,7 @@ jobs: | |
fail_ci_if_error: true | ||
|
||
- name: Run sonar-scanner | ||
if: ${{ env.SONAR_TOKEN != '' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
@@ -211,8 +218,8 @@ jobs: | |
|
||
# TODO: Include notebooks in coverage report | ||
|
||
osx: | ||
name: Tests OSX | ||
macos_cpp_py: | ||
name: Tests MacOS C++/Python | ||
runs-on: macos-latest | ||
|
||
steps: | ||
|
@@ -224,16 +231,11 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- run: git fetch --prune --unshallow | ||
|
||
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | ||
- run: echo "BNGPATH=${AMICI_DIR}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV | ||
# Ensure CMake is using the python version that we will use for the python tests later on | ||
- run: echo "PYTHON_EXECUTABLE=${Python3_ROOT_DIR}/bin/python3" >> $GITHUB_ENV | ||
- run: echo "OpenMP_ROOT=$(brew --prefix)/opt/libomp" >> $GITHUB_ENV | ||
- run: echo "BOOST_ROOT=$(brew --prefix)/opt/boost" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-macos-dependencies | ||
|
||
# install amici dependencies | ||
- name: homebrew | ||
run: brew install hdf5 swig gcc cppcheck libomp boost | ||
run: brew install cppcheck | ||
|
||
- name: Build AMICI | ||
run: scripts/buildAll.sh | ||
|
@@ -247,8 +249,47 @@ jobs: | |
- name: cppcheck | ||
run: scripts/run-cppcheck.sh | ||
|
||
- name: Python tests | ||
run: scripts/run-python-tests.sh | ||
|
||
- name: C++ tests | ||
run: scripts/run-cpp-tests.sh | ||
|
||
- name: Python tests | ||
run: | | ||
scripts/run-python-tests.sh \ | ||
test_pregenerated_models.py \ | ||
test_splines_short.py \ | ||
test_misc.py | ||
macos_python: | ||
name: Tests MacOS Python | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- uses: actions/checkout@v3 | ||
- run: git fetch --prune --unshallow | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/install-macos-dependencies | ||
|
||
- name: Install python package | ||
run: | | ||
pip show numpy > /dev/null || python3 -m pip install numpy | ||
scripts/installAmiciSource.sh | ||
- name: Check OpenMP support | ||
run: source build/venv/bin/activate && python -c "import amici; import sys; sys.exit(not amici.compiledWithOpenMP())" | ||
|
||
- name: Get BioNetGen | ||
run: scripts/buildBNGL.sh | ||
|
||
- name: Python tests | ||
run: | | ||
scripts/run-python-tests.sh \ | ||
--ignore=test_pregenerated_models.py \ | ||
--ignore=test_splines_short.py \ | ||
--ignore=test_misc.py |
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 |
---|---|---|
|
@@ -54,6 +54,7 @@ jobs: | |
path: tests/amici-semantic-results | ||
|
||
- name: Codecov SBMLSuite | ||
if: github.event_name == 'pull_request' || github.repository_owner == 'AMICI-dev' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
- cron: '48 4 * * *' | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
|
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 |
---|---|---|
|
@@ -24,4 +24,4 @@ build: | |
- libatlas-base-dev | ||
- swig | ||
tools: | ||
python: "3.9" | ||
python: "3.11" |
Oops, something went wrong.