add methods to bgc_phyto_raw.dataresource.yaml #286
Workflow file for this run
This file contains 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: 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 }} |