Skip to content

Prepare v1.1.0

Prepare v1.1.0 #518

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths:
- .github/workflows/tests.yml
- tests/*
- hydromt_sfincs/*
- pyproject.toml
pull_request:
branches: [main]
paths:
- .github/workflows/tests.yml
- tests/*
- hydromt_sfincs/*
- pyproject.toml
jobs:
build:
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10','3.11'] # '3.9'
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ matrix.python-version }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
id: pip
with:
# caching, see https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
cache: 'pip'
cache-dependency-path: pyproject.toml
python-version: ${{ matrix.python-version }}
# true if cache-hit occurred on the primary key
- name: Cache hit
run: echo '${{ steps.pip.outputs.cache-hit }}'
# build environment with pip
- name: Install hydromt-sfincs
run: |
pip install --upgrade pip
pip install .[test,examples]
pip list
# run test
- name: Test
run: |
export NUMBA_DISABLE_JIT=1
python -m pytest --verbose --cov=hydromt_sfincs --cov-report xml
# upload coverage
- uses: codecov/codecov-action@v3