# 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] 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 70 --junit-xml=junit.full.xml \ --continue-on-collection-errors \ -vv setenv = AIRFLOW_HOME = /tmp/airflow/thisshouldnotexist-{envname} [testenv:py3-airflow1] deps = .[dev-airflow1] [testenv:py3-full] deps = .[dev] .[integration-tests]