-
Notifications
You must be signed in to change notification settings - Fork 48
71 lines (69 loc) · 1.77 KB
/
test-package-conda.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
68
69
70
71
name: Tests
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version:
# - "3.7" # conda takes forever to install the dependencies
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Conda info
# the shell setting is necessary for loading profile etc which activates the conda environment
shell: bash -el {0}
run: conda info
- name: Install dependencies
shell: bash -el {0}
run: |
conda install \
boltons \
cython \
deprecation \
dill \
diskcache \
h5py \
imageio \
natsort \
numba \
numpy \
numpydoc \
pandas \
piexif \
pillow \
pip \
pkg-config \
pytorch \
requests \
schema \
scikit-learn \
scipy \
setuptools \
sphinx \
torchvision \
tqdm
- name: Conda list
shell: bash -el {0}
run: conda list
- name: Test with pytest
shell: bash -el {0}
# hypothesis=6.113.0 is the last version with python 3.8 support
run: |
conda install pytest hypothesis=6.113.0
python setup.py build_ext --inplace
python -m pytest --nomatlab --notheano --nodownload tests
- name: test build and install
shell: bash -el {0}
run: |
python setup.py sdist
pip install dist/*.tar.gz
mkdir tmp && cd tmp && python -c "import pysaliency"