@@ -14,23 +14,33 @@ jobs:
14
14
matrix :
15
15
os : [ubuntu-20.04, macOS-10.15, windows-2019]
16
16
python-version : [3.6, 3.7, 3.8, 3.9]
17
- pytorch-version : ["1.6", "1. 7", "1.8", "1.9", "1.10", "1.11"]
17
+ pytorch-version : ["1.7", "1.8", "1.9", "1.10", "1.11"]
18
18
19
19
steps :
20
20
- name : Checkout
21
21
uses : actions/checkout@v2
22
22
23
- - name : Set up Python ${{ matrix.python-version }}
24
- uses : actions /setup-python @v2
23
+ - name : Setup Miniconda using Python ${{ matrix.python-version }}
24
+ uses : conda-incubator /setup-miniconda @v2
25
25
with :
26
+ miniforge-variant : Mambaforge
27
+ miniforge-version : latest
28
+ use-mamba : true
26
29
python-version : ${{ matrix.python-version }}
30
+ channels : pytorch,pytorch-test,pytorch-nightly,conda-forge
31
+ channel-priority : true
32
+ use-only-tar-bz2 : true
33
+ # prevent hanging Conda creations
34
+ timeout-minutes : 10
27
35
28
36
- name : Install dependencies
29
37
run : |
30
- python -m pip install --upgrade pip
31
- pip install torch== ${{ matrix.pytorch-version }}
38
+ conda info
39
+ conda install cpuonly mkl pytorch= ${{ matrix.pytorch-version }} packaging
32
40
pip install -r requirements.txt
33
41
pip install -r requirements_tests.txt
42
+ pip list
43
+ python -c "from torch import __version__ as ver; assert '.'.join(ver.split('.')[:2]) == '${{ matrix.pytorch-version }}', ver"
34
44
35
45
- name : Install package
36
46
run : |
0 commit comments