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 committed by GitHub
parent 3c999f052e
commit 8ff9073161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -116,9 +116,3 @@ steps:
python -m pytest --pyargs spacy python -m pytest --pyargs spacy
displayName: "Run CPU tests with thinc-apple-ops" displayName: "Run CPU tests with thinc-apple-ops"
condition: and(startsWith(variables['imageName'], 'macos'), eq(variables['python.version'], '3.11')) 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: | run: |
python -m pip install flake8==5.0.4 python -m pip install flake8==5.0.4
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics 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: tests:
name: Test name: Test
needs: Validate needs: Validate
@ -188,8 +191,3 @@ jobs:
python -m pip install 'spacy[apple]' python -m pip install 'spacy[apple]'
python -m pytest --pyargs spacy python -m pytest --pyargs spacy
if: startsWith(matrix.os, 'macos') && matrix.python_version == '3.8' 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 pip install flake8==5.0.4
python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics python -m flake8 spacy --count --select=E901,E999,F821,F822,F823,W605 --show-source --statistics
displayName: "flake8" displayName: "flake8"
- script: |
python .github/validate_universe_json.py website/meta/universe.json
displayName: 'Validate website/meta/universe.json'
- job: "Test" - job: "Test"
dependsOn: "Validate" dependsOn: "Validate"