mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
36ecba224e
* Set up CI for tests with GPU agent * Update tests for enabled GPU * Fix steps filename * Add parallel build jobs as a setting * Fix test requirements * Fix install test requirements condition * Fix pipeline models test * Reset current ops in prefer/require testing * Fix more tests * Remove separate test_models test * Fix regression 5551 * fix StaticVectors for GPU use * fix vocab tests * Fix regression test 5082 * Move azure steps to .github and reenable default pool jobs * Consolidate/rename azure steps Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
100 lines
2.7 KiB
YAML
100 lines
2.7 KiB
YAML
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- "*"
|
|
exclude:
|
|
- "spacy.io"
|
|
- "nightly.spacy.io"
|
|
- "v2.spacy.io"
|
|
paths:
|
|
exclude:
|
|
- "website/*"
|
|
- "*.md"
|
|
pr:
|
|
paths:
|
|
exclude:
|
|
- "website/*"
|
|
- "*.md"
|
|
|
|
jobs:
|
|
# Perform basic checks for most important errors (syntax etc.) Uses the config
|
|
# defined in .flake8 and overwrites the selected codes.
|
|
- job: "Validate"
|
|
pool:
|
|
vmImage: "ubuntu-16.04"
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: "3.7"
|
|
- script: |
|
|
pip install flake8==3.5.0
|
|
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
|
displayName: "flake8"
|
|
|
|
- job: "Test"
|
|
dependsOn: "Validate"
|
|
strategy:
|
|
matrix:
|
|
# We're only running one platform per Python version to speed up builds
|
|
Python36Linux:
|
|
imageName: "ubuntu-16.04"
|
|
python.version: "3.6"
|
|
# Python36Windows:
|
|
# imageName: "vs2017-win2016"
|
|
# python.version: "3.6"
|
|
# Python36Mac:
|
|
# imageName: "macos-10.14"
|
|
# python.version: "3.6"
|
|
# Python37Linux:
|
|
# imageName: "ubuntu-16.04"
|
|
# python.version: "3.7"
|
|
Python37Windows:
|
|
imageName: "vs2017-win2016"
|
|
python.version: "3.7"
|
|
# Python37Mac:
|
|
# imageName: "macos-10.14"
|
|
# python.version: "3.7"
|
|
# Python38Linux:
|
|
# imageName: "ubuntu-16.04"
|
|
# python.version: "3.8"
|
|
# Python38Windows:
|
|
# imageName: "vs2017-win2016"
|
|
# python.version: "3.8"
|
|
Python38Mac:
|
|
imageName: "macos-10.14"
|
|
python.version: "3.8"
|
|
Python39Linux:
|
|
imageName: "ubuntu-16.04"
|
|
python.version: "3.9"
|
|
Python39Windows:
|
|
imageName: "vs2017-win2016"
|
|
python.version: "3.9"
|
|
Python39Mac:
|
|
imageName: "macos-10.14"
|
|
python.version: "3.9"
|
|
maxParallel: 4
|
|
pool:
|
|
vmImage: $(imageName)
|
|
steps:
|
|
- template: .github/azure-steps.yml
|
|
parameters:
|
|
python_version: '$(python.version)'
|
|
architecture: 'x64'
|
|
|
|
- job: "TestGPU"
|
|
dependsOn: "Validate"
|
|
strategy:
|
|
matrix:
|
|
Python38LinuxX64_GPU:
|
|
python.version: '3.8'
|
|
pool:
|
|
name: "LinuxX64_GPU"
|
|
steps:
|
|
- template: .github/azure-steps.yml
|
|
parameters:
|
|
python_version: '$(python.version)'
|
|
architecture: 'x64'
|
|
gpu: true
|
|
num_build_jobs: 24
|