mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 03:43:09 +03:00
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:
parent
cae72e46dd
commit
dca663a2ef
23
.travis.yml
23
.travis.yml
|
@ -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
|
|
|
@ -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)
|
[Check out the release notes here.](https://github.com/explosion/spaCy/releases/tag/v3.0.0rc1)
|
||||||
|
|
||||||
[>)](https://dev.azure.com/explosion-ai/public/_build?definitionId=8)
|
[>)](https://dev.azure.com/explosion-ai/public/_build?definitionId=8)
|
||||||
[>)](https://travis-ci.org/explosion/spaCy)
|
|
||||||
[](https://github.com/explosion/spaCy/releases)
|
[](https://github.com/explosion/spaCy/releases)
|
||||||
[](https://pypi.org/project/spacy/)
|
[](https://pypi.org/project/spacy/)
|
||||||
[](https://anaconda.org/conda-forge/spacy)
|
[](https://anaconda.org/conda-forge/spacy)
|
||||||
|
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
# defined in .flake8 and overwrites the selected codes.
|
# defined in .flake8 and overwrites the selected codes.
|
||||||
- job: 'Validate'
|
- job: 'Validate'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-16.04'
|
vmImage: 'ubuntu-18.04'
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Python35Linux:
|
Python35Linux:
|
||||||
imageName: 'ubuntu-16.04'
|
imageName: 'ubuntu-18.04'
|
||||||
python.version: '3.5'
|
python.version: '3.5'
|
||||||
os: linux
|
os: linux
|
||||||
Python35Windows:
|
Python35Windows:
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
python.version: '3.5'
|
python.version: '3.5'
|
||||||
# Test on one OS per python 3.6/3.7/3.8 to speed up CI
|
# Test on one OS per python 3.6/3.7/3.8 to speed up CI
|
||||||
Python36Linux:
|
Python36Linux:
|
||||||
imageName: 'ubuntu-16.04'
|
imageName: 'ubuntu-18.04'
|
||||||
python.version: '3.6'
|
python.version: '3.6'
|
||||||
# Python36Windows:
|
# Python36Windows:
|
||||||
# imageName: 'vs2017-win2016'
|
# imageName: 'vs2017-win2016'
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
||||||
# imageName: 'macos-10.14'
|
# imageName: 'macos-10.14'
|
||||||
# python.version: '3.6'
|
# python.version: '3.6'
|
||||||
# Python37Linux:
|
# Python37Linux:
|
||||||
# imageName: 'ubuntu-16.04'
|
# imageName: 'ubuntu-18.04'
|
||||||
# python.version: '3.7'
|
# python.version: '3.7'
|
||||||
Python37Windows:
|
Python37Windows:
|
||||||
imageName: 'vs2017-win2016'
|
imageName: 'vs2017-win2016'
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
||||||
# imageName: 'macos-10.14'
|
# imageName: 'macos-10.14'
|
||||||
# python.version: '3.7'
|
# python.version: '3.7'
|
||||||
# Python38Linux:
|
# Python38Linux:
|
||||||
# imageName: 'ubuntu-16.04'
|
# imageName: 'ubuntu-18.04'
|
||||||
# python.version: '3.8'
|
# python.version: '3.8'
|
||||||
# Python38Windows:
|
# Python38Windows:
|
||||||
# imageName: 'vs2017-win2016'
|
# imageName: 'vs2017-win2016'
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
imageName: 'macos-10.14'
|
imageName: 'macos-10.14'
|
||||||
python.version: '3.8'
|
python.version: '3.8'
|
||||||
Python39Linux:
|
Python39Linux:
|
||||||
imageName: 'ubuntu-16.04'
|
imageName: 'ubuntu-18.04'
|
||||||
python.version: '3.9'
|
python.version: '3.9'
|
||||||
Python39Windows:
|
Python39Windows:
|
||||||
imageName: 'vs2017-win2016'
|
imageName: 'vs2017-win2016'
|
||||||
|
@ -130,6 +130,10 @@ jobs:
|
||||||
- script: |
|
- script: |
|
||||||
pip install -r requirements.txt --prefer-binary
|
pip install -r requirements.txt --prefer-binary
|
||||||
python -m pytest --pyargs spacy
|
python -m pytest --pyargs spacy
|
||||||
|
displayName: 'Run tests'
|
||||||
|
|
||||||
|
- script: |
|
||||||
python -m spacy download en_core_web_sm
|
python -m spacy download en_core_web_sm
|
||||||
python -c "import spacy; nlp=spacy.load('en_core_web_sm'); doc=nlp('test')"
|
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'))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user