mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
CI: Separate spacy universe validation into a separate workflow (#12440)
* Separate spacy universe validation into a separate workflow * Fix new workflow name
This commit is contained in:
parent
5f72d6c836
commit
54c614e116
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
|
@ -9,30 +9,14 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "*.mdx"
|
- "*.mdx"
|
||||||
- "website/docs/**"
|
- "website/**"
|
||||||
- "website/src/**"
|
|
||||||
- "website/meta/*.tsx"
|
|
||||||
- "website/meta/*.mjs"
|
|
||||||
- "website/meta/languages.json"
|
|
||||||
- "website/meta/site.json"
|
|
||||||
- "website/meta/sidebars.json"
|
|
||||||
- "website/meta/type-annotations.json"
|
|
||||||
- "website/pages/**"
|
|
||||||
- ".github/workflows/**"
|
- ".github/workflows/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened, edited]
|
types: [opened, synchronize, reopened, edited]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "*.mdx"
|
- "*.mdx"
|
||||||
- "website/docs/**"
|
- "website/**"
|
||||||
- "website/src/**"
|
|
||||||
- "website/meta/*.tsx"
|
|
||||||
- "website/meta/*.mjs"
|
|
||||||
- "website/meta/languages.json"
|
|
||||||
- "website/meta/site.json"
|
|
||||||
- "website/meta/sidebars.json"
|
|
||||||
- "website/meta/type-annotations.json"
|
|
||||||
- "website/pages/**"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
|
@ -56,9 +40,6 @@ 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
|
||||||
|
|
32
.github/workflows/universe_validation.yml
vendored
Normal file
32
.github/workflows/universe_validation.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: universe validation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "spacy.io"
|
||||||
|
- "nightly.spacy.io"
|
||||||
|
- "v2.spacy.io"
|
||||||
|
paths:
|
||||||
|
- "website/meta/universe.json"
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, edited]
|
||||||
|
paths:
|
||||||
|
- "website/meta/universe.json"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
name: Validate
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Configure Python version
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.7"
|
||||||
|
architecture: x64
|
||||||
|
|
||||||
|
- name: Validate website/meta/universe.json
|
||||||
|
run: |
|
||||||
|
python .github/validate_universe_json.py website/meta/universe.json
|
Loading…
Reference in New Issue
Block a user