-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (39 loc) · 1.11 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
name: Tests stable
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Test:
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"] #, "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
environment-file: envs/hydromt-sfincs-dev.yml
activate-environment: hydromt-sfincs-dev
- name: Conda info
run: |
conda info
conda list
- name: Intall hydromt_sfincs
run: pip install .
- name: Test
run: python -m pytest --verbose --cov=hydromt_sfincs --cov-report xml
- name: Check style
run: black --check .
- uses: codecov/codecov-action@v3