-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
38 lines (34 loc) · 1.01 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
32
33
34
35
36
37
38
[tox]
envlist = py{35,36,37,38,39,310}-{ubuntu-latest,macos-latest,windows-latest},lint
[testenv]
usedevelop = true
deps =
docker<5 # https://github.com/docker/docker-py/issues/2807
pytest-cov
pytest-integration
pretend
setenv =
PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=50 --ignore=tests/test_data
windows-latest: PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=50 --ignore=tests/test_data
commands = pytest {env:PYTESTARGS} {posargs}
[testenv:lint]
basepython=python3
deps =
black
twine
isort
commands =
black --check src tests setup.py conftest.py --exclude tests/
isort -c src tests setup.py conftest.py
python setup.py --quiet sdist bdist_wheel
twine check dist/*
[testenv:triggers]
deps =
pytest-cov
pytest-integration
commands = pytest -s tests/test_triggers.py
[testenv:cli]
deps =
pytest-cov
pytest-integration
commands = pytest -s tests/test_cli.py