Skip to content

Commit

Permalink
Add zenodo validator
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Feb 6, 2024
1 parent ed39dc4 commit 7c9c96b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/zenodo.schema

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions .github/workflows/zenodo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Zenodo validator
on: [push, pull_request]

jobs:
zenodo:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version:
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install check-jsonschema
# From https://github.com/zenodraft/metadata-schema-zenodo/blob/main/schema.json
- name: Test
run:
check-jsonschema --schemafile .github/workflows/zenodo.schema .zenodo.json

0 comments on commit 7c9c96b

Please sign in to comment.