forked from Deltares/hydromt
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.01 KB
/
check-data-catalogs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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.15.2"
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