forked from kymatio/kymatio
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.83 KB
/
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
name: Kymatio Conda CI
on:
- push
- pull_request
jobs:
build-conda:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
pytorch-version: ['1.13', '2.0']
include:
- python-version: '3.7'
pytorch-version: '1.13'
- python-version: '3.11'
pytorch-version: '2.0'
env:
CONDA_ENV: test-env-py${{ matrix.python-version }}-torch${{ matrix.pytorch-version }}
steps:
- uses: actions/checkout@v1
- name: Set up Conda
run: |
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda create -q -n ${CONDA_ENV} python=${{ matrix.python-version }}
- name: Install dependencies
run: |
conda install -n ${CONDA_ENV} numpy scipy pytest pytest-cov
conda install -n ${CONDA_ENV} pytorch=${{ matrix.pytorch-version }} torchvision cpuonly -c pytorch
conda run -n ${CONDA_ENV} python3 -m pip install --upgrade pip
conda run -n ${CONDA_ENV} python3 -m pip install "tensorflow>=2.0.0a"
conda run -n ${CONDA_ENV} python3 -m pip install scikit-learn
conda run -n ${CONDA_ENV} python3 -m pip install jaxlib jax
conda run -n ${CONDA_ENV} python3 -m pip install -r requirements.txt
conda run -n ${CONDA_ENV} python3 -m pip install -r requirements_optional.txt
- name: Set up Kymatio
run: conda run -n ${CONDA_ENV} python3 setup.py develop
- name: Test
run: conda run -n ${CONDA_ENV} pytest --cov=kymatio