-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis.yml
46 lines (40 loc) · 1.42 KB
/
travis.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
dist: trusty
sudo: false
language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
include:
- env: PYTHON_VERSION="3.8" NUMPY_VERSION="*" SCIPY_VERSION="*"
- env: PYTHON_VERSION="3.9" NUMPY_VERSION="*" SCIPY_VERSION="*"
- env: PYTHON_VERSION="3.10" NUMPY_VERSION="*" SCIPY_VERSION="*"
- env: PYTHON_VERSION="3.11" NUMPY_VERSION="*" SCIPY_VERSION="*"
install:
# install miniconda
- deactivate
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- MINICONDA_PATH=/home/travis/miniconda
- chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
- export PATH=$MINICONDA_PATH/bin:$PATH
- conda update --yes conda
# create the testing environment
- conda create -n testenv --yes python=$PYTHON_VERSION pip
- source activate testenv
- |
if [ $SKLEARN_VERSION = "nightly" ]; then
conda install --yes -c conda-forge numpy==$NUMPY_VERSION scipy==$SCIPY_VERSION
# install nightly wheels
pip install --pre -f https://sklearn-nightly.scdn8.secure.raxcdn.com scikit-learn
else
conda install --yes -c conda-forge numpy==$NUMPY_VERSION scipy==$SCIPY_VERSION scikit-learn==$SKLEARN_VERSION
fi
- pip install codecov cython nose pytest pytest-cov
- pip install .
script:
- pytest -v doc/*rst
- mkdir for_test
- cd for_test
- pytest -v --cov=skltemplate --pyargs skltemplate
after_success:
- codecov