-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.02 KB
/
ci.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
---
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 5
matrix:
python-version: [3.9]
os: ["windows-latest"]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
environment-file: envs/hydromt-delft3dfm.yml
activate-environment: hydromt-delft3dfm
- name: Conda info
run: |
conda info
conda list
- name: Install hydromt_delft3dfm
run: |
flit install --pth-file
hydromt --models
- name: Test with pytest
run: |
python -m pytest --cov=hydromt_delft3dfm --cov-report xml --cov-report term
- uses: codecov/codecov-action@v1