forked from aws-solutions/instance-scheduler-on-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
85 lines (76 loc) · 1.48 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
; SPDX-License-Identifier: Apache-2.0
[tox]
env_list =
lambda
cdk
cli
eslint
black
minversion = 4.0.13
package_root = source/app
isolated_build = true
[gh-actions]
python =
3.9: lambda, cli, cdk
3.10: lambda, cli
3.11: lambda, cli
[testenv:black]
description = run black lint checks
skip_install = true
deps =
black
commands =
black --check source
[testenv:eslint]
description = run eslint checks
allowlist_externals =
npm
npx
change_dir = source/infrastructure
package = skip
commands =
npm install
npx prettier --check '**/*.ts'
npx eslint --max-warnings=0 .
[testenv:lambda]
description = run lambda unit tests
allowlist_externals = poetry
change_dir = source/app
deps =
poetry
commands_pre =
poetry install
commands =
poetry run pytest tests/ {posargs}
[testenv:cli]
description = run cli tests
change_dir = source/cli
allowlist_externals = poetry
deps =
poetry
package = skip
commands_pre =
poetry install
commands =
poetry run pytest tests/ {posargs}
[testenv:cdk]
allowlist_externals = npm
change_dir = source/infrastructure
description = run CDK unit tests
package = skip
pass_env =
USER
commands =
npm install
npm run test -- {posargs}
[testenv:e2e]
allowlist_externals = npm
change_dir = source/infrastructure
description = run e2e tests
package = skip
pass_env =
*
commands =
npm install
npm run e2e-tests -- {posargs}