-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.travis.yml
More file actions
75 lines (61 loc) · 2.12 KB
/
Copy path.travis.yml
File metadata and controls
75 lines (61 loc) · 2.12 KB
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
68
69
70
71
72
73
74
75
dist: noble
os: linux
sudo: required
language: python
matrix:
include:
- python: '3.10'
dist: jammy
env:
- COVERAGE="true"
- RDMAV_FORK_SAFE=1
- python: '3.11'
dist: jammy
env:
- RDMAV_FORK_SAFE=1
- python: '3.12'
env:
- RDMAV_FORK_SAFE=1
- python: '3.13'
env:
- RDMAV_FORK_SAFE=1
- python: '3.14'
env:
- CYTHON="true" # numpy source build
- DILL="master"
- RDMAV_FORK_SAFE=1
- python: '3.15t-dev'
env:
- CYTHON="true" # numpy source build
- DILL="master"
- RDMAV_FORK_SAFE=1
- python: 'pypy3.10-7.3.19'
env:
- RDMAV_FORK_SAFE=1
- python: 'pypy3.11-7.3.20'
env:
- RDMAV_FORK_SAFE=1
allow_failures:
- python: '3.15t-dev' # prerelease
fast_finish: true
cache:
pip: true
apt: true
before_install:
- set -e # fail on any error
- sudo apt-get update -q
- set -x; sudo apt-get install -y -q g++ mpich libmpich-dev # openmpi-bin libopenmpi-dev
- export MPICC=$(which mpicc)
- if [[ $COVERAGE == "true" ]]; then pip install coverage; fi
- if [[ $CYTHON == "true" ]]; then pip install "cython<0.29.25"; fi #FIXME
- if [[ $DILL == "master" ]]; then pip install "https://github.com/uqfoundation/dill/archive/master.tar.gz"; fi
install:
- python -m pip install --no-binary mpi4py mpi4py
- python -m pip install .
script:
- mpiexec -np 1 python examples/which.py
- for test in pyina/tests/__init__.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
- for test in pyina/tests/test_*.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
after_success:
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
- if [[ $COVERAGE == "true" ]]; then coverage report; fi