Added (hopefully) complete tox config
continuous-integration/drone the build failed Details

pull/15/head
Jef Roosens 2021-04-24 22:22:12 +02:00
parent 156b2441c2
commit 79f2161b88
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
4 changed files with 43 additions and 3 deletions

View File

@ -1,8 +1,35 @@
pipeline: pipeline:
# TODO add config for all other versions # TODO add config for all other versions
text-3.9-current: test-3.9:
image: python:3.9 image: python:3.9-alpine
pull: true pull: true
commands: commands:
- pip install -e .[dev] - pip install -e .[dev]
- tox -e py39 - tox -e py39
test-3.8:
image: python:3.8-alpine
pull: true
commands:
- pip install -e .[dev]
- tox -e py38
test-3.7:
image: python:3.7-alpine
pull: true
commands:
- pip install -e .[dev]
- tox -e py37
test-3.6:
image: python:3.6-alpine
pull: true
commands:
- pip install -e .[dev]
- tox -e py36
lint:
image: python:3.6-alpine
commands:
- pip install -e .[dev]
- tox -e lint

View File

@ -39,3 +39,7 @@ install: app
test: venv tox.ini test: venv tox.ini
@ .venv/bin/tox @ .venv/bin/tox
.PHONY: test .PHONY: test
lint: venv
@ .venv/bin/tox -e lint
.PHONY: lint

View File

@ -0,0 +1,2 @@
def test_succeed():
pass

View File

@ -1,7 +1,14 @@
[tox] [tox]
envlist = py36,py37,py38,py39 envlist = py36,py37,py38,py39,lint
[testenv] [testenv]
deps = pytest deps = pytest
commands = commands =
pytest pytest
[testenv:lint]
basepython = python3.6
deps = black==20.8b1
flake8==3.8.4
commands = black --check setup.py app
flake8 setup.py app