From 4699ee1494b45fc3d3b4ef2bfaf1d2b857c80b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Midb=C3=B8e?= Date: Wed, 19 Feb 2020 10:22:32 +0100 Subject: [PATCH] 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. --- .drone.yml | 6 +++--- requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index e61c330..d1cf94d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,8 @@ platform: arch: amd64 steps: -- name: test-python3.6 - image: python:3.6-alpine +- name: test-python2.7 + image: python:2.7-alpine commands: - python --version - pip install -r requirements.txt @@ -23,7 +23,7 @@ steps: - py.test - name: codecov - image: python:3.6-alpine + image: python:3.8-alpine environment: CODECOV_TOKEN: from_secret: CODECOV_TOKEN diff --git a/requirements.txt b/requirements.txt index 1450541..9053705 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,6 @@ enzyme>=0.4.1 click>=6.7 langdetect>=1.0.7 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