forked from Qiskit/ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (40 loc) · 1.23 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
[tox]
minversion = 3.6
envlist = py36, py37, py38, py39, lint, coverage, black, ci, json
skipsdist = True
[testenv]
usedevelop = true
passenv = *
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps = -r requirements.txt
-r requirements-dev.txt
commands =
pip check
python -m unittest -v
[testenv:lint]
envdir = .tox/lint
sitepackages = False
commands =
pylint -rn ecosystem tests
[testenv:coverage]
basepython = python3
commands =
coverage3 run -m unittest -v
coverage3 report --fail-under=80
[testenv:black]
envdir = .tox/lint
commands = black {posargs} ecosystem tests --check
[testenv:ci]
commands =
apt-get install -yq docker-ce docker-ce-cli
curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
act -j submission_workflow -e .github/workflows/test_payloads/submission-wf-newissue.json --env-file .github/workflows/test_payloads/my.env
act -j submission_workflow -e .github/workflows/test_payloads/submission-wf-commenttrigger.json --env-file .github/workflows/test_payloads/my.env
[testenv:json]
allowlist_externals = /bin/bash
commands =
bash -ec 'for i in ecosystem/resources/*.json; do echo $i; cat $i | jq empty; done'