Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin pytorch version to 1.x.x in setup.py and in meta.yaml. #1016

Merged
merged 5 commits into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/pytorch-version-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
schedule:
# Run at 00:00 UTC on Sunday
- cron: '0 0 * * 0'

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 10
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
erip marked this conversation as resolved.
Show resolved Hide resolved
pytorch-version: [1.5.0, 1.4.0, 1.3.1, 1.2.0, 1.1.0, 1.0.1]

steps:
- uses: actions/checkout@v2
- name: Setup Conda
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
# Useful for debugging any issues with conda
conda info -a
conda create -q -n test-environment pytorch=${{ matrix.pytorch-version }} cpuonly python=${{ matrix.python-version }} -c pytorch

- name: Install dependencies
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate test-environment
# Keep fix in case of problem with torchvision nightly releases
conda install torchvision cpuonly python=${{ matrix.python-version }} -c pytorch
pip install -r requirements-dev.txt
python setup.py install

- name: Run Tests
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate test-environment
py.test tests -vvv
File renamed without changes.
4 changes: 2 additions & 2 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ requirements:
build:
- python
- setuptools
- pytorch
- pytorch 1.*.*

run:
- python
- pytorch
- pytorch 1.*.*

test:
imports:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def find_version(*file_paths):
VERSION = find_version("ignite", "__init__.py")

requirements = [
"torch",
"torch>=1.0,<2",
]

setup(
Expand Down