Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit 3ce8d2f

Browse files
committed
config 'tox'
1 parent 1ce63e8 commit 3ce8d2f

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ lint: ## run tools for code style analysis, static type check, etc
5151
flake8 --config=setup.cfg fd_gcp tests
5252
mypy --config-file setup.cfg fd_gcp
5353

54-
test: ## run tests
54+
test: ## run tests quickly with the default Python
5555
python setup.py test
5656

5757
test-all: ## run tests on every Python version with tox
58-
@echo "TODO: configure tox"
58+
tox
5959

6060
test-coverage: ## run tests and record test coverage
6161
coverage run --rcfile=setup.cfg setup.py test

tox.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[tox]
2-
envlist = py37
2+
envlist =
3+
py37
34

45
[testenv]
56
setenv =
6-
PYTHONPATH = {toxinidir}
7-
8-
commands = python setup.py test
7+
PYTHONPATH = {toxinidir}:{toxinidir}/fd_gcp
8+
commands = coverage run --rcfile=setup.cfg setup.py test
9+
deps =
10+
-r{toxinidir}/requirements/test.txt
11+
basepython =
12+
py37: python3.7

0 commit comments

Comments
 (0)