forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 1.36 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
39
40
41
42
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py3-quick,py3-full,py3-airflow1
[gh-actions]
python =
3.6: py3-full, py3-airflow1
3.9: py3-full, py3-airflow1
# Providing optional features that add dependencies from setup.py as deps here
# allows tox to recreate testenv when new dependencies are added to setup.py.
# Previous approach of using the tox global setting extras is not recommended
# as extras is only called when the testenv is created for the first time!
# see more here -> https://github.com/tox-dev/tox/issues/1105#issuecomment-448596282
[testenv]
passenv = SPARK_VERSION
deps =
.[dev]
commands =
pytest --cov={envsitepackagesdir}/datahub --cov={envsitepackagesdir}/datahub_provider \
py3-quick,py3-airflow1: -m 'not integration and not slow_integration' --junit-xml=junit.quick.xml \
py3-full: --cov-fail-under 65 --junit-xml=junit.full.xml \
--continue-on-collection-errors \
-vv
setenv =
AIRFLOW_HOME = /tmp/airflow/thisshouldnotexist-{envname}
[testenv:py3-airflow1]
deps =
.[dev-airflow1]
-c tests/airflow1-constraints.txt
[testenv:py3-full]
deps =
.[dev]
.[integration-tests]