@@ -14,42 +14,29 @@ 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.7", "1.8", "1.9", "1.10", "1.11"]
17
+ pytorch-version : ["1.7.0 ", "1.8.0 ", "1.9.0 ", "1.10.0 ", "1.11.0 "]
18
18
19
19
steps :
20
20
- name : Checkout
21
21
uses : actions/checkout@v2
22
22
23
- - name : Setup Miniconda using Python ${{ matrix.python-version }}
24
- uses : conda-incubator /setup-miniconda @v2
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ uses : actions /setup-python @v2
25
25
with :
26
- miniforge-variant : Mambaforge
27
- miniforge-version : latest
28
- use-mamba : true
29
26
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
35
27
36
28
- name : Install dependencies
37
29
run : |
38
- conda info
39
- conda install cpuonly mkl pytorch=${{ matrix.pytorch-version }} packaging
40
- export PIP_IGNORE_INSTALLED=0
30
+ python -m pip install --upgrade pip
31
+ pip install torch==${{ matrix.pytorch-version }}
41
32
pip install numpy>=1.16.4 networkx
42
33
pip install -r requirements_tests.txt
43
- pip list
44
- python -c "from torch import __version__ as ver; assert '.'.join(ver.split('.')[:2]) == '${{ matrix.pytorch-version }}', ver"
45
-
46
34
- name : Install package
47
35
run : |
48
36
python setup.py install sdist bdist_wheel
49
37
twine check dist/*
50
-
51
38
- name : Test with pytest
52
39
run : |
53
40
pip install pytest coverage
54
41
coverage run -m pytest tests/ -vv
55
- coverage report -m
42
+ coverage report -m
0 commit comments