clean test environment

This commit is contained in:
Petr Klima committed 2020-11-04 15:22:47 +00:00
1 parent ff523969da
commit 81403c2ec9
4 files changed
+43 -11

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# This workflows will upload a Python Package using Twine when a release is created # This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Testing Upload Python Package to TEST.PyPi.org name: Test before push
on: on:
push: push:
-6
View File
@@ -1,6 +0,0 @@
[pylama]
linters = mccabe,pep257,pep8,pyflakes
ignore = D203,
[pylama:pep8]
max_line_length = 120
-1
View File
@@ -32,4 +32,3 @@ include =
[coverage:report] [coverage:report]
omit = omit =
napalm_s350/test/*
+42 -3
View File
@@ -1,9 +1,48 @@
[tox] [tox]
envlist = py36,py37,py38 envlist = py3{6,7,8},black,pylama
skip_missing_interpreters = true
[travis]
python =
3.6: py36,black,pylama
[travis:env]
TRAVIS_BUILD_STAGE_NAME =
Lint: black,pylama
Test: py3{6,7,8}
[testenv] [testenv]
deps = deps =
-rrequirements.txt -rrequirements.txt
-rrequirements-dev.txt -rrequirements-dev.txt
#commands = passenv = *
# py.test {posargs}
commands =
py.test --cov=napalm_s350 --cov-report term-missing -vs {posargs}
[testenv:black]
deps = black==18.9b0
basepython = python3.6
commands =
black --check .
[testenv:pylama]
deps =
-rrequirements-dev.txt
basepython = python3.6
commands =
pylama .
[testenv:sphinx]
deps =
-rdocs/requirements.txt
basepython = python3.6
commands =
make doctest
whitelist_externals =
make