-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
56 lines (50 loc) · 1.54 KB
/
config.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
version: 2.1
orbs:
python: circleci/python@0.3.2
jobs:
build-conda:
executor: python/default
steps:
- checkout
- python/load-cache:
key: conda
- run:
command: |
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda config --set always_yes yes
conda update conda
conda create -n mighty python=3.6 scikit-learn tqdm scipy
conda activate mighty
conda install pytorch torchvision cpuonly -c pytorch
conda install -c conda-forge scipy h5py ecos jpype1 pyopencl intel-compute-runtime
pip install https://github.com/pwollstadt/IDTxl/archive/v1.2.2.tar.gz
pip list
pip -V
name: conda-install
- run: pip install -r requirements.txt
- run: pip install coveralls nose
- python/save-cache:
key: conda
- run:
command: |
nosetests --with-coverage --cover-package=mighty mighty/tests
coveralls
name: Test & coverage
build-pip:
executor: python/default
steps:
- checkout
- python/load-cache:
key: pip
- run: pip install -r requirements.txt
- run: pip install nose
- python/save-cache:
key: pip
- run: nosetests --cover-package=mighty mighty/tests
workflows:
main:
jobs:
- build-pip
- build-conda