clean test environment
This commit is contained in:
1 parent
ff523969da
commit
81403c2ec9
4 files changed
+43
-11
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# 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
|
||||
|
||||
name: Testing Upload Python Package to TEST.PyPi.org
|
||||
name: Test before push
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[pylama]
|
||||
linters = mccabe,pep257,pep8,pyflakes
|
||||
ignore = D203,
|
||||
|
||||
[pylama:pep8]
|
||||
max_line_length = 120
|
||||
@@ -1,9 +1,48 @@
|
||||
[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]
|
||||
deps =
|
||||
-rrequirements.txt
|
||||
-rrequirements-dev.txt
|
||||
#commands =
|
||||
# py.test {posargs}
|
||||
passenv = *
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user