Skip to content

Commit

Permalink
okay: 1. have human readable output; 2. create an invalid.log; 3. che…
Browse files Browse the repository at this point in the history
…ck the invalid log size; for #1983
  • Loading branch information
kltm committed Mar 22, 2023
1 parent cef00ff commit 1d8f7c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/qc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,55 +34,67 @@ jobs:
## Users.
- name: Test users schema.
run: |
kwalify -E -f metadata/db-xrefs.schema.yaml metadata/db-xrefs.yaml 2>&1
kwalify -E -f metadata/db-xrefs.schema.yaml metadata/db-xrefs.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test users metadata.
run: |
kwalify -E -f metadata/users.schema.yaml metadata/users.yaml 2>&1
kwalify -E -f metadata/users.schema.yaml metadata/users.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## Groups.
- name: Test groups schema.
run: |
kwalify -E -m metadata/groups.schema.yaml 2>&1
kwalify -E -m metadata/groups.schema.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test groups metadata.
run: |
kwalify -E -f metadata/groups.schema.yaml metadata/groups.yaml 2>&1
kwalify -E -f metadata/groups.schema.yaml metadata/groups.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## DB Xrefs.
- name: Test dbxrefs schema.
run: |
kwalify -E -m metadata/db-xrefs.schema.yaml 2>&1
kwalify -E -m metadata/db-xrefs.schema.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test dbxrefs metadata.
run: |
kwalify -E -f metadata/db-xrefs.schema.yaml metadata/db-xrefs.yaml 2>&1
kwalify -E -f metadata/db-xrefs.schema.yaml metadata/db-xrefs.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## Datasets.
- name: Test datasets schema.
run: |
kwalify -E -m metadata/datasets.schema.yaml 2>&1
kwalify -E -m metadata/datasets.schema.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test datasets metadata.
run: |
kwalify -E -f metadata/datasets.schema.yaml metadata/datasets/*.yaml 2>&1
kwalify -E -f metadata/datasets.schema.yaml metadata/datasets/*.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## Extension constraints.
- name: Test extension constraints schema.
run: |
kwalify -E -m metadata/extensions-constraints.schema.yaml 2>&1
kwalify -E -m metadata/extensions-constraints.schema.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test extension constraints metadata.
run: |
kwalify -E -f metadata/extensions-constraints.schema.yaml metadata/extensions-constraints.yaml 2>&1
kwalify -E -f metadata/extensions-constraints.schema.yaml metadata/extensions-constraints.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## GO reference species set.
- name: Test reference species set schema.
run: |
kwalify -E -m metadata/go-reference-species.schema.yaml 2>&1
kwalify -E -m metadata/go-reference-species.schema.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
- name: Test reference species set metadata.
run: |
kwalify -E -f metadata/go-reference-species.schema.yaml metadata/go-reference-species.yaml 2>&1
kwalify -E -f metadata/go-reference-species.schema.yaml metadata/go-reference-species.yaml 2>&1 | grep 'INVALID\|ERROR' > invalid.log || true
test $(stat -c %s invalid.log) -eq 0
## Cross-test metadata
Expand Down

0 comments on commit 1d8f7c8

Please sign in to comment.