Skip to content

add methods to bgc_phyto_raw.dataresource.yaml #286

add methods to bgc_phyto_raw.dataresource.yaml

add methods to bgc_phyto_raw.dataresource.yaml #286

Workflow file for this run

name: Test Resources
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Validate-BGC-CPR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r code/requirements.txt
- name: Get changed resource files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: |
bgc_data/*.dataresource.yaml
cpr_data/*.dataresource.yaml
- name: Validate data against changed schemas
if: steps.changed-files.outputs.any_changed == 'true'
run: code/validate.py ${{ steps.changed-files.outputs.all_changed_files }}