Skip to content

Commit

Permalink
TST: Schema up to date ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lovland committed Feb 12, 2024
1 parent 13a4dc1 commit 5902309
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/schemas-up-to-date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Schema up to date

on:
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * *"

jobs:
check_schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install pip -U
pip install -e .
- name: Check schema
run: |
python3 -m fmu.dataio.datastructure.meta > schema/definitions/0.8.0/schema/fmu_meta.json
git diff --exit-code

0 comments on commit 5902309

Please sign in to comment.