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 b767c2a
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 17 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/schemas-up-to-date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: |
git log
git show
python3 -m fmu.dataio.datastructure.meta > schema/definitions/0.8.0/schema/fmu_meta.json
git diff --exit-code
Loading

0 comments on commit b767c2a

Please sign in to comment.