[PMSH] Fix dependencies and build script
[dcaegen2/services.git] / components / pm-subscription-handler / tox.ini
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 2019-2023 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 [tox]
20 envlist = flake8,py39,py310
21 skip_missing_interpreters = true
22
23 [testenv]
24 deps=
25     -rrequirements.txt
26     pytest
27     coverage
28     pytest-cov
29     responses==0.10.7
30     parameterized==0.7.4
31 setenv =
32     PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests
33 commands=
34     pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term-missing \
35     tests --verbose --cov-fail-under=70
36
37 [testenv:flake8]
38 basepython = python3
39 skip_install = true
40 deps = flake8
41 commands = flake8 pmsh_service tests
42
43 [flake8]
44 max-line-length=100
45 ignore = E999