-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
43 lines (36 loc) · 1.64 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
sudo: false
os: linux
language: python
env:
- PYTHON_V=3.6 PYTORCH_V=1.8.0
- PYTHON_V=3.7 PYTORCH_V=1.8.0
- PYTHON_V=3.8 PYTORCH_V=1.8.0
- PYTHON_V=3.9 PYTORCH_V=1.8.0
branches:
only:
- master
- travis
notifications:
email: false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p _miniconda; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh && bash Miniconda3-latest-MacOSX-x86_64.sh -b -p _miniconda; fi
- export PATH="$PWD/_miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda install python=${PYTHON_V}
- conda update -q conda
- if [[ "$PYTHON_V" == "3.9" ]]; then export P39C="-c=conda-forge"; fi
- conda install pytorch==${PYTORCH_V} cpuonly -c pytorch ${P39C}
- conda install scipy
script:
- python -m unittest discover -s examples/akltS2 -p "ctmrg_*.py"
- python -m unittest discover -s examples/akltS2 -p "optim_*.py"
- python -m unittest discover -s examples/ising -p "ctmrg_*.py"
- python -m unittest discover -s examples/ising -p "optim_*.py"
- python -m unittest discover -s examples/jq -p "ctmrg_*.py"
- python -m unittest discover -s examples/jq -p "optim_*.py"
- python -m unittest discover -s examples/ladders -p "ctmrg_*.py"
- python -m unittest discover -s examples/ladders -p "ctmrg_*.py"
- python -m unittest discover -s examples/kagome -p "optim_*.py"
- python -m unittest discover -s examples/kagome -p "optim_*.py"
- python -m unittest discover -s examples -p "ctmrg_*.py"
- python -m unittest discover -s examples -p "optim_*.py"