Skip to content

Commit dd0adea

Browse files
committed
try again
1 parent ccbd585 commit dd0adea

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,29 @@ jobs:
1414
matrix:
1515
os: [ubuntu-20.04, macOS-10.15, windows-2019]
1616
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"]
1818

1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v2
2222

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
2525
with:
26-
miniforge-variant: Mambaforge
27-
miniforge-version: latest
28-
use-mamba: true
2926
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
3527

3628
- name: Install dependencies
3729
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 }}
4132
pip install numpy>=1.16.4 networkx
4233
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-
4634
- name: Install package
4735
run: |
4836
python setup.py install sdist bdist_wheel
4937
twine check dist/*
50-
5138
- name: Test with pytest
5239
run: |
5340
pip install pytest coverage
5441
coverage run -m pytest tests/ -vv
55-
coverage report -m
42+
coverage report -m

0 commit comments

Comments
 (0)