CI: Move universe validation to validate job (#12406)

* CI: Move universe validation to validate job

* Fix indentation

* Update step name
This commit is contained in:
Adriane Boyd 2023-03-13 14:21:17 +01:00
parent 9da333cbfa
commit ed83cafe46
3 changed files with 6 additions and 11 deletions

View File

@ -116,9 +116,3 @@ steps:
python -m pytest --pyargs spacy
displayName: "Run CPU tests with thinc-apple-ops"
condition: and(startsWith(variables['imageName'], 'macos'), eq(variables['python.version'], '3.11'))
- script: |
python .github/validate_universe_json.py website/meta/universe.json
displayName: 'Test website/meta/universe.json'
condition: eq(variables['python_version'], '3.8')

View File

@ -58,6 +58,9 @@ jobs:
run: |
python -m pip install flake8==5.0.4
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics
- name: Validate website/meta/universe.json
run: |
python .github/validate_universe_json.py website/meta/universe.json
tests:
name: Test
needs: Validate
@ -188,8 +191,3 @@ jobs:
python -m pip install 'spacy[apple]'
python -m pytest --pyargs spacy
if: startsWith(matrix.os, 'macos') && matrix.python_version == '3.8'
- run: |
python .github/validate_universe_json.py website/meta/universe.json
name: "Test website/meta/universe.json"
if: matrix.python_version == '3.8'

View File

@ -48,6 +48,9 @@ jobs:
pip install flake8==5.0.4
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics
displayName: "flake8"
- script: |
python .github/validate_universe_json.py website/meta/universe.json
displayName: 'Validate website/meta/universe.json'
- job: "Test"
dependsOn: "Validate"