forked from Deltares/hydromt
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (56 loc) · 1.38 KB
/
tests.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
workflow_dispatch:
push:
branches:
- main
- v1
paths:
- tests/**/*
- hydromt/**/*
- data/**/*
- pyproject.toml
- pixi.lock
- pixi.toml
- .github/workflows/tests.yml
pull_request:
branches:
- main
- v1
paths:
- tests/**/*
- hydromt/**/*
- data/**/*
- pyproject.toml
- pixi.lock
- pixi.toml
- .github/workflows/tests.yml
jobs:
build:
defaults:
run:
shell: bash -e -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['39','310','311']
name: py ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ matrix.os }}-${{ matrix.python-version }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: "v0.21.1"
environments: full-py${{ matrix.python-version }}
- name: Prepare pixi
run: |
pixi run --locked -e full-py${{ matrix.python-version }} install-hydromt
- name: Test
run: |
export NUMBA_DISABLE_JIT=1
pixi run --locked -e full-py${{ matrix.python-version }} test-cov