diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..66720c4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: "23 0 12 * *" +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install fastjsonschema + - name: Validate tools' JSON + run: | + cd -- schemas/ + ./validate-all-tools.py -s ./spec-v1.schema.json -t ../corpora/cmc-corpora/ diff --git a/schemas/.github/workflows/main.yml b/schemas/.github/workflows/main.yml new file mode 100644 index 0000000..269634a --- /dev/null +++ b/schemas/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: "23 0 12 * *" +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install fastjsonschema + - name: Validate tools' JSON + run: | + cd -- schemas/ + ./validate-all-tools.py -s ./spec-v1.schema.json -s ./spec-v2.schema.json -t ../tools