Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 1329a57

Browse files
authored
Run tests with actual Python versions (#161)
1 parent cefdc44 commit 1329a57

File tree

3 files changed

+43
-39
lines changed

3 files changed

+43
-39
lines changed

.travis.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
sudo: false
2-
language: python
3-
python:
4-
- "2.7"
5-
- "3.4"
6-
- "3.5"
7-
matrix:
8-
include:
9-
- python: 3.7
10-
dist: xenial
11-
sudo: true
1+
language: generic
2+
3+
env:
4+
matrix:
5+
- PYTHON_VERSION=3.6
6+
- PYTHON_VERSION=3.7
7+
- PYTHON_VERSION=3.8
8+
- PYTHON_VERSION=3.9
9+
1210
install:
13-
# We do this conditionally because it saves us some downloading if the
14-
# version is the same.
15-
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
16-
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
17-
else
18-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
19-
fi
11+
- wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
2012
- bash miniconda.sh -b -p $HOME/miniconda
2113
- export PATH="$HOME/miniconda/bin:$PATH"
2214
- hash -r
@@ -25,7 +17,7 @@ install:
2517
# Useful for debugging any issues with conda
2618
- conda info -a
2719

28-
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose cython scikit-learn six joblib
20+
- conda create -q -n test-environment python=$PYTHON_VERSION numpy scipy nose cython scikit-learn six joblib
2921
- source activate test-environment
3022
- make all
3123

appveyor.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,63 @@
11
# AppVeyor.com is a Continuous Integration service to build and run tests under
22
# Windows
33
# https://ci.appveyor.com/project/fabianp/lightning-bpc6r
4-
environment:
5-
global:
6-
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
7-
# /E:ON and /V:ON options are not enabled in the batch script interpreter
8-
# See: http://stackoverflow.com/a/13751649/163740
9-
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\build_tools\\appveyor\\run_with_env.cmd"
104

5+
image: Visual Studio 2019
6+
7+
# Not a .NET project, we build scikit-learn in the install step instead
8+
build: false
9+
10+
environment:
1111
matrix:
12-
- PYTHON: "C:\\Python27"
13-
PYTHON_VERSION: "2.7.8"
12+
- PYTHON: "C:\\Python36"
13+
PYTHON_VERSION: "3.6.8"
1414
PYTHON_ARCH: "32"
1515

16-
- PYTHON: "C:\\Python27-x64"
17-
PYTHON_VERSION: "2.7.8"
16+
- PYTHON: "C:\\Python36-x64"
17+
PYTHON_VERSION: "3.6.8"
1818
PYTHON_ARCH: "64"
1919

2020
- PYTHON: "C:\\Python37"
21-
PYTHON_VERSION: "3.7.0"
21+
PYTHON_VERSION: "3.7.5"
2222
PYTHON_ARCH: "32"
2323

2424
- PYTHON: "C:\\Python37-x64"
25-
PYTHON_VERSION: "3.7.0"
25+
PYTHON_VERSION: "3.7.5"
26+
PYTHON_ARCH: "64"
27+
28+
- PYTHON: "C:\\Python38"
29+
PYTHON_VERSION: "3.8.7"
30+
PYTHON_ARCH: "32"
31+
32+
- PYTHON: "C:\\Python38-x64"
33+
PYTHON_VERSION: "3.8.7"
2634
PYTHON_ARCH: "64"
2735

36+
- PYTHON: "C:\\Python39"
37+
PYTHON_VERSION: "3.9.1"
38+
PYTHON_ARCH: "32"
39+
40+
- PYTHON: "C:\\Python39-x64"
41+
PYTHON_VERSION: "3.9.1"
42+
PYTHON_ARCH: "64"
2843

2944

3045
install:
3146
# Miniconda is pre-installed in the worker build
32-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
47+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\mingw-w64\\bin;%PYTHON%\\Library\\bin;%PYTHON%\\Library\\usr\\bin;%PATH%"
3348
- "python -m pip install -U pip"
3449

3550
# Check that we have the expected version and architecture for Python
3651
- "python --version"
3752
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
38-
- "pip --version"
53+
- "python -m pip --version"
3954

40-
- "%CMD_IN_ENV% pip install --timeout=60 numpy scipy cython nose scikit-learn wheel six joblib"
41-
- "%CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst"
55+
- "python -m pip install --timeout=60 numpy scipy cython nose scikit-learn wheel six joblib"
56+
- "python setup.py bdist_wheel bdist_wininst"
4257

4358
- ps: "ls dist"
4459
# Install the generated wheel package to test it
45-
- "pip install --pre --no-index --find-links dist/ sklearn-contrib-lightning"
46-
47-
# Not a .NET project, we build scikit-learn in the install step instead
48-
build: false
60+
- "python -m pip install --pre --no-index --find-links dist/ sklearn-contrib-lightning"
4961

5062
test_script:
5163
# Change to a non-source folder to make sure we run the tests on the

lightning/impl/datasets/tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)