-
Notifications
You must be signed in to change notification settings - Fork 44
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 #300 from ICB-DCM/develop
Release 0.10.2
- Loading branch information
Showing
24 changed files
with
380 additions
and
112 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,48 @@ | ||
#!/bin/sh | ||
|
||
# apt | ||
sudo apt-get update | ||
sudo apt-get install redis-server | ||
|
||
# pip | ||
python -m pip install --upgrade pip | ||
pip install -r .ci_pip_reqs.txt | ||
|
||
# install package | ||
pip install -e . | ||
|
||
# optional dependencies | ||
for par in "$@" | ||
do | ||
case $par in | ||
|
||
R) | ||
# R environment | ||
sudo apt-key adv \ | ||
--keyserver keyserver.ubuntu.com \ | ||
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
sudo add-apt-repository \ | ||
'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | ||
sudo apt-get update | ||
sudo apt-get install r-base | ||
pip install rpy2>=3.2.0 cffi>=1.13.1 | ||
;; | ||
|
||
petab) | ||
# PEtab | ||
sudo apt-get install swig3.0 libatlas-base-dev libhdf5-serial-dev | ||
sudo ln -s /usr/bin/swig3.0 /usr/bin/swig | ||
pip install https://github.com/icb-dcm/petab/archive/develop.zip | ||
pip install -e \ | ||
'git+https://github.com/icb-dcm/amici.git@develop#egg=amici&subdirectory=python/sdist' | ||
git clone --depth 1 \ | ||
https://github.com/petab-dev/petab_test_suite .tmp/petab_test_suite | ||
pip install -e .tmp/petab_test_suite | ||
;; | ||
|
||
*) | ||
echo "Unknown argument" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
done |
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,64 @@ | ||
name: CI | ||
|
||
# trigger | ||
on: [pull_request] | ||
|
||
jobs: | ||
notebooks: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache | ||
key: ${{ runner.os }}-ci-notebooks | ||
|
||
- name: Install dependencies | ||
run: .github/workflows/ci_dependencies.sh R petab | ||
|
||
- name: Run notebooks | ||
run: | | ||
test/run_notebooks.sh | ||
docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache | ||
key: ${{ runner.os }}-ci-docs | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install pandoc | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
pip install sphinx nbsphinx nbconvert sphinx-rtd-theme | ||
- name: Build docs | ||
run: sphinx-build -W -b html doc/ doc/_build/html |
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,113 @@ | ||
name: CI | ||
|
||
# trigger | ||
on: [push] | ||
|
||
jobs: | ||
base: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache | ||
key: ${{ runner.os }}-ci-base | ||
restore-keys: ${{ runner.os }}- | ||
|
||
- name: Install dependencies | ||
run: .github/workflows/ci_dependencies.sh R | ||
|
||
- name: Run tests | ||
run: | | ||
python -m pytest --cov=pyabc --cov-report=xml \ | ||
test/test_* test/visualization/test_* | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
|
||
external: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache | ||
key: ${{ runner.os }}-ci-external | ||
restore-keys: ${{ runner.os }}- | ||
|
||
- name: Install dependencies | ||
run: .github/workflows/ci_dependencies.sh R | ||
|
||
- name: Run tests | ||
run: | | ||
python -m pytest --cov=pyabc --cov-report=xml \ | ||
test/external/test_* | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
|
||
petab: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache | ||
key: ${{ runner.os }}-ci-petab | ||
restore-keys: ${{ runner.os }}- | ||
|
||
- name: Install dependencies | ||
run: .github/workflows/ci_dependencies.sh petab | ||
|
||
- name: Run tests | ||
run: | | ||
python -m pytest --cov=pyabc --cov-report=xml \ | ||
test/petab/test_* | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml |
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,35 @@ | ||
name: Deploy | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.