Skip to content

Commit 1bb8b22

Browse files
ci(tox): fix slow dependency resolution
1 parent d6f9c5d commit 1bb8b22

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

appveyor.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
environment:
2-
32
matrix:
4-
5-
- PYTHON: "C:\\Python35"
6-
- PYTHON: "C:\\Python36-x64"
3+
- TOXENV: py36
4+
- TOXENV: py37
5+
- TOXENV: py38
76

87
install:
98

10-
# Install Python (from the official .msi of https://python.org) and pip when
11-
# not already installed.
12-
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
13-
14-
# Prepend newly installed Python to the PATH of this build
15-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
16-
17-
- "python -m pip install --upgrade pip"
18-
19-
- "pip install --editable ."
20-
21-
- "pip install -r requirements-dev.txt"
9+
# Install Tox
10+
- pip install tox==3.23.0
2211

2312
build: off
2413

2514
test_script:
26-
27-
- ps: py.test --reruns 3 --cov=ibm_watson
15+
- tox
2816

2917
deploy: off
3018

3119
matrix:
32-
fast_finish: true
33-
20+
fast_finish: true

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ commands = pylint ibm_watson test examples
88

99
[testenv]
1010
passenv = TOXENV CI TRAVIS*
11+
deps = -r{toxinidir}/requirements.txt
12+
commands_pre= pip install -r{toxinidir}/requirements-dev.txt
1113
commands =
1214
py.test --reruns 3 --cov=ibm_watson
1315
codecov -e TOXENV
14-
deps =
15-
-r{toxinidir}/requirements.txt
16-
-r{toxinidir}/requirements-dev.txt
17-
--upgrade pip==20.3.3
1816
usedevelop = True
1917
exclude = .venv,.git,.tox,docs

0 commit comments

Comments
 (0)