added .yml to gitattributes (#935) #2
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: Validate Data Catalog | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: | |
- data/catalogs/*.yml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- data/catalogs/*.yml | |
jobs: | |
build: | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
DOC_PYTHON_VERSION: '3.11' | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
concurrency: | |
group: ${{ github.workflow }}-data-catalog-validation-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: "v0.21.1" | |
environments: min-py311 | |
- name: Prepare pixi | |
run: | | |
pixi run --locked -e min-py311 install-hydromt | |
- name: Validate the catalogs | |
run: | | |
export NUMBA_DISABLE_JIT=1 | |
for d in $(ls data/catalogs/*.yml); do | |
echo "Checking $d" | |
PYTHONPYCACHEPREFIX=~/pycache pixi run --locked -e min-py311 hydromt check -d $d | |
done |