Unverified Commit f3217257 authored by moto's avatar moto Committed by GitHub
Browse files

Run test against PyTorch nightly on Travis CI (#538)

* Update requirements and travis installation

* Drop support for 3.5 and add test for 3.8
parent d45699f4
...@@ -13,13 +13,13 @@ cache: ...@@ -13,13 +13,13 @@ cache:
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- env: PYTHON_VERSION="3.5"
- env: PYTHON_VERSION="3.6" - env: PYTHON_VERSION="3.6"
- env: PYTHON_VERSION="3.7" - env: PYTHON_VERSION="3.7"
- env: PYTHON_VERSION="3.5" RUN_FLAKE8="true" SKIP_INSTALL="true" SKIP_TESTS="true" - env: PYTHON_VERSION="3.8"
- env: PYTHON_VERSION="3.5" RUN_EXAMPLE_TESTS="true" SKIP_TESTS="true" - env: PYTHON_VERSION="3.6" RUN_FLAKE8="true" SKIP_INSTALL="true" SKIP_TESTS="true"
- env: PYTHON_VERSION="3.6" RUN_EXAMPLE_TESTS="true" SKIP_TESTS="true"
allow_failures: allow_failures:
- env: PYTHON_VERSION="3.5" RUN_EXAMPLE_TESTS="true" SKIP_TESTS="true" - env: PYTHON_VERSION="3.6" RUN_EXAMPLE_TESTS="true" SKIP_TESTS="true"
addons: addons:
apt: apt:
......
...@@ -48,6 +48,7 @@ popd ...@@ -48,6 +48,7 @@ popd
source activate testenv source activate testenv
# Install requirements via pip in our conda environment # Install requirements via pip in our conda environment
conda install -y pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt pip install -r requirements.txt
# Install the following only if running tests # Install the following only if running tests
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
set -e set -e
python --version python --version
python -c 'import torch;print("torch:", torch.__version__)'
run_tests() { run_tests() {
# find all the test files that match "test*.py" # find all the test files that match "test*.py"
......
torch>=1.2.0 torch>=1.4.0
# Required for Windows because it's the only available backend # Required for Windows because it's the only available backend
SoundFile; sys_platform == 'win32' SoundFile; sys_platform == 'win32'
...@@ -18,6 +18,3 @@ scipy ...@@ -18,6 +18,3 @@ scipy
# Unit tests with pytest # Unit tests with pytest
pytest pytest
# Testing only Py3 compat
backports.tempfile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment