-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (47 loc) · 1.29 KB
/
ci_env.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
name: Lisflood Utilities Unit Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
max-parallel: 5
steps:
- name: Checkout github repo (+ download lfs dependencies)
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Install python and gcc
shell: bash -el {0}
run: |
conda install -c conda-forge python=3.7
conda install -c conda-forge gcc=12.1.0
- name: Install gdal eccodes pcraster hdf5
shell: bash -el {0}
run: |
conda install -c conda-forge gdal==3.5.1 eccodes pcraster
conda install -c conda-forge hdf5
- name: Install dependencies
shell: bash -el {0}
run: |
pip install -r requirements.txt
pip install .
- name: Check installation
shell: bash -el {0}
run: |
gdal-config --version
python -c "from osgeo import gdal; print(gdal.__version__)"
conda list
- name: Test with pytest
shell: bash -el {0}
run: |
pip install pytest pytest-cov
pytest