Update CI for v2.x (#8290)

* Remove Travis CI for python 2.7

* Move download CLI test to separate step

* Switch to ubuntu-18.04

* Remove duplicate CI download tests

* Restrict download test to linux python 3.9
This commit is contained in:
Adriane Boyd 2021-06-07 10:25:36 +02:00 committed by GitHub
parent cae72e46dd
commit dca663a2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 31 deletions

View File

@ -1,23 +0,0 @@
language: python
sudo: false
cache: pip
dist: trusty
group: edge
python:
- "2.7"
os:
- linux
install:
- "python -m pip install -U pip setuptools"
- "pip install -e . --prefer-binary"
script:
- "cat /proc/cpuinfo | grep flags | head -n 1"
- "pip install -r requirements.txt"
- "python -m pytest --tb=native spacy"
branches:
except:
- spacy.io
notifications:
slack:
secure: F8GvqnweSdzImuLL64TpfG0i5rYl89liyr9tmFVsHl4c0DNiDuGhZivUz0M1broS8svE3OPOllLfQbACG/4KxD890qfF9MoHzvRDlp7U+RtwMV/YAkYn8MGWjPIbRbX0HpGdY7O2Rc9Qy4Kk0T8ZgiqXYIqAz2Eva9/9BlSmsJQ=
email: false

View File

@ -18,7 +18,6 @@ It's commercial open-source software, released under the MIT license.
[Check out the release notes here.](https://github.com/explosion/spaCy/releases/tag/v3.0.0rc1)
[![Azure Pipelines](<https://img.shields.io/azure-devops/build/explosion-ai/public/8/master.svg?logo=azure-pipelines&style=flat-square&label=build+(3.x)>)](https://dev.azure.com/explosion-ai/public/_build?definitionId=8)
[![Travis Build Status](<https://img.shields.io/travis/explosion/spaCy/master.svg?style=flat-square&logo=travis-ci&logoColor=white&label=build+(2.7)>)](https://travis-ci.org/explosion/spaCy)
[![Current Release Version](https://img.shields.io/github/release/explosion/spacy.svg?style=flat-square&logo=github)](https://github.com/explosion/spaCy/releases)
[![pypi Version](https://img.shields.io/pypi/v/spacy.svg?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/spacy/)
[![conda Version](https://img.shields.io/conda/vn/conda-forge/spacy.svg?style=flat-square&logo=conda-forge&logoColor=white)](https://anaconda.org/conda-forge/spacy)

View File

@ -21,7 +21,7 @@ jobs:
# defined in .flake8 and overwrites the selected codes.
- job: 'Validate'
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-18.04'
steps:
- task: UsePythonVersion@0
inputs:
@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
Python35Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-18.04'
python.version: '3.5'
os: linux
Python35Windows:
@ -44,7 +44,7 @@ jobs:
python.version: '3.5'
# Test on one OS per python 3.6/3.7/3.8 to speed up CI
Python36Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-18.04'
python.version: '3.6'
# Python36Windows:
# imageName: 'vs2017-win2016'
@ -53,7 +53,7 @@ jobs:
# imageName: 'macos-10.14'
# python.version: '3.6'
# Python37Linux:
# imageName: 'ubuntu-16.04'
# imageName: 'ubuntu-18.04'
# python.version: '3.7'
Python37Windows:
imageName: 'vs2017-win2016'
@ -62,7 +62,7 @@ jobs:
# imageName: 'macos-10.14'
# python.version: '3.7'
# Python38Linux:
# imageName: 'ubuntu-16.04'
# imageName: 'ubuntu-18.04'
# python.version: '3.8'
# Python38Windows:
# imageName: 'vs2017-win2016'
@ -71,7 +71,7 @@ jobs:
imageName: 'macos-10.14'
python.version: '3.8'
Python39Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-18.04'
python.version: '3.9'
Python39Windows:
imageName: 'vs2017-win2016'
@ -130,6 +130,10 @@ jobs:
- script: |
pip install -r requirements.txt --prefer-binary
python -m pytest --pyargs spacy
displayName: 'Run tests'
- script: |
python -m spacy download en_core_web_sm
python -c "import spacy; nlp=spacy.load('en_core_web_sm'); doc=nlp('test')"
displayName: 'Run tests'
displayName: 'Test download CLI'
condition: and(eq(variables['python.version'], '3.9'), eq(variables['imageName'], 'ubuntu-18.04'))