-
Notifications
You must be signed in to change notification settings - Fork 31
67 lines (57 loc) · 1.52 KB
/
test_python_ver_matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Python Tests
on:
push:
branches:
- develop
- master
pull_request:
branches:
- master
workflow_dispatch:
schedule:
- cron: '48 4 * * *'
jobs:
build:
name: Python Version Matrix
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
env:
AMICI_SKIP_CMAKE_TESTS: "TRUE"
AMICI_PARALLEL_COMPILE: ""
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
experimental: [false]
steps:
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
- run: echo "BNGPATH=${AMICI_DIR}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
with:
fetch-depth: 20
# install dependencies
- name: apt
run: |
sudo apt-get update \
&& sudo apt-get install -y \
swig \
libatlas-base-dev \
libhdf5-serial-dev \
libboost-math-dev
# install AMICI
- name: Build BNGL
run: |
scripts/buildBNGL.sh
- name: Install python package
run: |
scripts/installAmiciSource.sh
- name: Python tests
run: |
source build/venv/bin/activate \
&& pip3 install git+https://github.com/pysb/pysb \
&& python3 -m pytest --ignore-glob=*petab* \
--ignore-glob=*test_splines.py ${AMICI_DIR}/python/tests