Change drone to run one version of py3 and py2 for testing. Needed to specify pytest versions depending on if above or below python version 3.

This commit is contained in:
2020-02-19 10:22:32 +01:00
parent 1834fd64c8
commit 4699ee1494
2 changed files with 5 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: test-python3.6 - name: test-python2.7
image: python:3.6-alpine image: python:2.7-alpine
commands: commands:
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
@@ -23,7 +23,7 @@ steps:
- py.test - py.test
- name: codecov - name: codecov
image: python:3.6-alpine image: python:3.8-alpine
environment: environment:
CODECOV_TOKEN: CODECOV_TOKEN:
from_secret: CODECOV_TOKEN from_secret: CODECOV_TOKEN

View File

@@ -5,5 +5,6 @@ enzyme>=0.4.1
click>=6.7 click>=6.7
langdetect>=1.0.7 langdetect>=1.0.7
titlecase>=0.12.0 titlecase>=0.12.0
pytest>=5.3.5 pytest>=4.6.9 ; python_version <= '2.7'
pytest>=5.3.5 ; python_version > '2.7'
pytest-cov>=2.8.1 pytest-cov>=2.8.1