-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
31 lines (28 loc) · 1.19 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Tox (https://tox.readthedocs.io/) is a tool for running tests in multiple virtualenvs. This configuration file helps
# to run the test suite against different combinations of libraries and Python versions.
# To use it locally, "pip install tox" and then run "tox --skip-missing-interpreters" from this directory.
[tox]
isolated_build = true
minversion = 3.24.3
envlist = py{27,35,37}
[gh-actions]
# Mapping of Python versions (MAJOR.MINOR) to Tox factors.
# When running Tox inside GitHub Actions, the `tox-gh-actions` plugin automatically:
# 1. Identifies the Python version used to run Tox.
# 2. Determines the corresponding Tox factor for that Python version, based on the `python` mapping below.
# 3. Narrows down the Tox `envlist` to environments that match the factor.
# For more details, please see the `tox-gh-actions` README [0] and architecture documentation [1].
# [0] https://github.com/ymyzk/tox-gh-actions/tree/v2.8.1
# [1] https://github.com/ymyzk/tox-gh-actions/blob/v2.8.1/ARCHITECTURE.md
python =
2.7: py27
3.5: py35
3.7: py37
[testenv]
usedevelop = true
deps = -rdev-requirements.txt
commands = pytest -vv {posargs}
passenv =
BT_MERCHANT_ID
BT_PUBLIC_KEY
BT_PRIVATE_KEY