Skip to content

Commit

Permalink
Merge pull request #299 from ICB-DCM/feature_298_amici_update
Browse files Browse the repository at this point in the history
Update AMICI to 0.11.8
  • Loading branch information
dweindl authored Oct 28, 2020
2 parents 0750546 + 4c3bcfe commit 58678d2
Show file tree
Hide file tree
Showing 272 changed files with 14,550 additions and 12,719 deletions.
30 changes: 30 additions & 0 deletions deps/AMICI/.github/workflows/deploy_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Branch
on: [push, pull_request, workflow_dispatch]

jobs:
sdist:
name: Deploy Python Source Distribution

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 20

- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
- run: echo "SWIG=${AMICI_DIR}/ThirdParty/swig-4.0.1/install/bin/swig" >> $GITHUB_ENV

- name: Build swig4
run: |
sudo scripts/downloadAndBuildSwig.sh
- name: Create AMICI sdist
run: |
scripts/buildSdist.sh
- name: "Upload artifact: sdist"
uses: actions/upload-artifact@v1
with:
name: sdist
path: python/sdist/dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# https://github.com/marketplace/actions/publish-docker
name: Deploy to dockerhub
on: [push]
name: Deploy Protected
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
name: Deploy to dockerhub
runs-on: ubuntu-latest
dockerhub:
# https://github.com/marketplace/actions/publish-docker
name: Deploy Dockerhub

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@master
- run: git archive -o docker/amici.tar.gz --format=tar.gz HEAD
Expand Down
35 changes: 35 additions & 0 deletions deps/AMICI/.github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy
on:
release:
types:
- published

jobs:
pypi:
name: Deploy PyPI

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 20

- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
- run: echo "SWIG=${AMICI_DIR}/ThirdParty/swig-4.0.1/install/bin/swig" >> $GITHUB_ENV

- name: Build swig4
run: |
sudo scripts/downloadAndBuildSwig.sh
- name: sdist
run: |
scripts/buildSdist.sh
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: python/sdist/dist

33 changes: 0 additions & 33 deletions deps/AMICI/.github/workflows/deploy_sdist.yml

This file was deleted.

70 changes: 0 additions & 70 deletions deps/AMICI/.github/workflows/test-petab-test-suite.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Benchmark collection
name: Benchmark Collection
on:
push:
branches:
Expand All @@ -9,12 +9,13 @@ on:
branches:
- master
- develop
workflow_dispatch:

jobs:
build:
name: Benchmark collection
name: Benchmark Collection

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
Expand All @@ -25,25 +26,24 @@ jobs:
- name: apt
run: |
sudo apt-get update \
&& sudo apt-get install -y swig3.0 libatlas-base-dev \
&& sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
&& sudo apt-get install -y swig libatlas-base-dev
- name: pip
run: |
pip3 install --upgrade --user wheel \
&& pip3 install --upgrade --user setuptools
- run: pip3 install pytest shyaml
- run: |
echo ::add-path::${HOME}/.local/bin/
echo ::add-path::${GITHUB_WORKSPACE}/tests/performance/

- run: echo "${HOME}/.local/bin/" >> $GITHUB_PATH
- run: echo "${GITHUB_WORKSPACE}/tests/performance/" >> $GITHUB_PATH

# install AMICI
- name: Create AMICI sdist
run: |
cd python/sdist \
&& check_time.sh create_sdist /usr/bin/python3 setup.py sdist
cd python/sdist && /usr/bin/python3 setup.py sdist
- name: Install AMICI sdist
run: |
AMICI_PARALLEL_COMPILE=2 check_time.sh \
install_sdist pip3 install -v --user \
AMICI_PARALLEL_COMPILE=2 pip3 install -v --user \
$(ls -t python/sdist/dist/amici-*.tar.gz | head -1)[petab]
# retrieve test models
Expand Down
107 changes: 0 additions & 107 deletions deps/AMICI/.github/workflows/test_cplusplus.yml

This file was deleted.

Loading

0 comments on commit 58678d2

Please sign in to comment.