forked from amplify-education/python-hcl2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
44 lines (38 loc) · 949 Bytes
/
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
[tox]
envlist={py37}-unit,{py38}-unit,{py39}-unit,{py310}-unit,{py311}-unit
skipsdist=true
[gh-actions]
python =
3.7: py37-unit
3.8: py38-unit
3.9: py39-unit
3.10: py310-unit
3.11: py311-unit
[testenv]
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt .
nose2 --config tox.ini --verbose
coverage xml -o reports/coverage.xml --omit=hcl2/lark_parser.py
# recursively parse all terraform files in a directory
[testenv:tf_test]
whitelist_externals=rm
passenv = TERRAFORM_CONFIG
basepython=python3.7
commands =
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
rm -f hcl2/lark_parser.py
python bin/terraform_test {posargs}
[unittest]
plugins=nose2.plugins.junitxml
code-directories=hcl2
start-dir=test
test-file-pattern=test_*.py
[coverage]
always-on=True
coverage=hcl2
coverage-report=
xml
term
[junit-xml]
always-on=True
path=reports/nose2.xml