Fixing various mistakes in PUFA lipids metadata #69
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CheckMetadataSchema.yaml | |
| on: | |
| pull_request: | |
| paths: | |
| - 'Molecules/membrane/*/metadata.yaml' | |
| - 'Molecules/solution/*/metadata.yaml' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| env: | |
| FMDL_DATA_PATH: ${{ github.workspace }}/BilayerData | |
| steps: | |
| - name: Checkout BilayerData | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| path: BilayerData | |
| - name: Checkout Databank | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: NMRlipids/FAIRMD_lipids | |
| ref: main | |
| path: Databank | |
| - name: Install Databank dependencies | |
| working-directory: Databank | |
| run: | | |
| pip install . | |
| - name: Install check-jsonschema | |
| run: pip install check-jsonschema==0.34.1 | |
| - name: Validate metadata.yaml files | |
| working-directory: BilayerData | |
| run: | | |
| for file in Molecules/membrane/*/metadata.yaml Molecules/solution/*/metadata.yaml; do | |
| if [ -f "$file" ]; then | |
| check-jsonschema --schemafile ../Databank/src/fairmd/lipids/schema_validation/schema/metadata_schema.json "$file" | |
| fi | |
| done |