-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
54 lines (49 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
53
54
[tox]
env_list =
lint
py310
py39
py38
py37
minversion = 4.1.3
[testenv]
description = install pytest in a virtual environment and invoke it on the tests folder
deps =
lint:
ruff>=0.0.207
black>=22.12.0
py310,39,38,37: pytest>=7
extras = dev
package = wheel
wheel_build_env = .pkg
setenv =
AIRFLOW__CORE__UNIT_TEST_MODE=True
AIRFLOW__CORE__LOAD_EXAMPLES=False
backend_sqlite: AIRFLOW__CORE__SQL_ALCHEMY_CONN=sqlite:///{homedir}/airflow.db
backend_sqlite: AIRFLOW__CORE__EXECUTOR=SequentialExecutor
[testenv:lint]
description = format using black
skip_install = true
commands =
black airflow_provider_hex
ruff airflow_provider_hex
[testenv:py310]
description = pytest using python 3.10
commands =
airflow db init
pytest {tty:--color=yes} {posargs}
[testenv:py39]
description = pytest using python 3.9
commands =
airflow db init
pytest {tty:--color=yes} {posargs}
[testenv:py38]
description = pytest using python 3.8
commands =
airflow db init
pytest {tty:--color=yes} {posargs}
[testenv:py37]
description = pytest using python 3.7
commands =
airflow db init
pytest {tty:--color=yes} {posargs}