Skip to content

Commit 0fc51c0

Browse files
authored
Merge pull request #2115 from AMICI-dev/release_0.18.0
Release 0.18.0
2 parents 81d32e7 + 7c99f34 commit 0fc51c0

File tree

340 files changed

+29112
-15406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+29112
-15406
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ exclude_lines =
1616
raise
1717
except:
1818
import
19-

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
# default owners
44
* @AMICI-dev/amici-maintainers
5-

.github/workflows/test_benchmark_collection_models.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
git clone --depth 1 https://github.com/benchmarking-initiative/Benchmark-Models-PEtab.git \
6262
&& export BENCHMARK_COLLECTION="$(pwd)/Benchmark-Models-PEtab/Benchmark-Models/" \
6363
&& AMICI_PARALLEL_COMPILE=2 tests/benchmark-models/test_benchmark_collection.sh
64-
64+
6565
# run gradient checks
6666
- name: Run Gradient Checks
6767
run: |

.github/workflows/test_petab_test_suite.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343
libatlas-base-dev \
4444
python3-venv
4545
46-
- run: pip3 install pysb petab
47-
4846
- name: Build BNGL
4947
run: |
5048
scripts/buildBNGL.sh
@@ -59,6 +57,11 @@ jobs:
5957
run: |
6058
scripts/installAmiciSource.sh
6159
60+
- name: Install petab
61+
run: |
62+
source ./build/venv/bin/activate \
63+
&& pip3 install wheel pytest shyaml pytest-cov pysb
64+
6265
# retrieve test models
6366
- name: Download and install PEtab test suite
6467
run: |

.github/workflows/test_python_cplusplus.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: C++/Python Tests
2-
on: [push, merge_group, workflow_dispatch]
2+
on:
3+
push:
4+
merge_group:
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- master
39

410
jobs:
511
build:
@@ -91,11 +97,23 @@ jobs:
9197
source build/venv/bin/activate \
9298
&& pytest \
9399
--ignore-glob=*petab* \
100+
--ignore-glob=*test_splines.py \
94101
--cov=amici \
95102
--cov-report=xml:"${AMICI_DIR}/build/coverage_py.xml" \
96103
--cov-append \
97104
${AMICI_DIR}/python/tests
98105
106+
107+
- name: Python tests splines
108+
if: ${{ github.base_ref == 'master' || github.event.merge_group.base_ref == 'master'}}
109+
run: |
110+
source build/venv/bin/activate \
111+
&& pytest \
112+
--cov=amici \
113+
--cov-report=xml:"${AMICI_DIR}/build/coverage_py.xml" \
114+
--cov-append \
115+
${AMICI_DIR}/python/tests/test_splines.py
116+
99117
- name: Install notebook dependencies
100118
run: |
101119
source build/venv/bin/activate \

.github/workflows/test_python_ver_matrix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ jobs:
6363
run: |
6464
source build/venv/bin/activate \
6565
&& pip3 install git+https://github.com/pysb/pysb \
66-
&& python3 -m pytest --ignore-glob=*petab* ${AMICI_DIR}/python/tests
66+
&& python3 -m pytest --ignore-glob=*petab* \
67+
--ignore-glob=*test_splines.py ${AMICI_DIR}/python/tests

.github/workflows/test_windows.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
workflow_dispatch:
66
schedule:
77
- cron: '48 4 * * *'
8+
pull_request:
9+
branches:
10+
- master
811

912
jobs:
1013
build:
1114
name: Tests Windows
1215

13-
runs-on: windows-2019
16+
runs-on: windows-latest
1417

1518
env:
1619
AMICI_SKIP_CMAKE_TESTS: "TRUE"
@@ -74,4 +77,14 @@ jobs:
7477
- run: python -m amici
7578

7679
- name: Run Python tests
77-
run: python -m pytest --ignore-glob=*petab* --ignore-glob=*special* python/tests
80+
shell: bash
81+
run: |
82+
python -m pytest \
83+
--ignore-glob=*petab* \
84+
--ignore-glob=*special* \
85+
--ignore-glob=*test_splines.py \
86+
python/tests
87+
88+
- name: Python tests splines
89+
if: ${{ github.base_ref == 'master' || github.event.merge_group.base_ref == 'master'}}
90+
run: python -m pytest python/tests/test_splines.py

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ models/model_robertson/build/*
4242
!models/model_calvetti
4343
models/model_calvetti/build/*
4444

45-
amici_models/*
45+
amici_models/
4646

4747
simulate_model_*_hdf.m
4848
simulate_model_*.m

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pycqa/isort
5+
rev: 5.12.0
6+
hooks:
7+
- id: isort
8+
name: isort (python)
9+
args: ["--profile", "black", "--filter-files"]
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.4.0
12+
hooks:
13+
- id: check-added-large-files
14+
- id: check-merge-conflict
15+
- id: check-yaml
16+
args: [--allow-multiple-documents]
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
19+
- repo: https://github.com/psf/black
20+
rev: 23.3.0
21+
hooks:
22+
- id: black
23+
# It is recommended to specify the latest version of Python
24+
# supported by your project here, or alternatively use
25+
# pre-commit's default_language_version, see
26+
# https://pre-commit.com/#top_level-default_language_version
27+
language_version: python3.11
28+
exclude: '^(ThirdParty|models)/'

0 commit comments

Comments
 (0)