Speed up gdf_to_bool_da and gdf_to_bool_ds functions. Added centroid checks and minimum area fraction filtering to docs. #1241
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nlmod | |
on: | |
# Trigger the workflow on push or pull request on main, | |
# and only on pull-requests on dev branch | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[ci] | |
- name: Download executables needed for tests | |
shell: bash -l {0} | |
run: | | |
python -c "import nlmod; nlmod.util.download_mfbinaries()" | |
- name: Run tests only | |
env: | |
NHI_GWO_USERNAME: ${{ secrets.NHI_GWO_USERNAME}} | |
NHI_GWO_PASSWORD: ${{ secrets.NHI_GWO_PASSWORD}} | |
run: | | |
py.test ./tests -m "not notebooks" | |
- name: Run codacy-coverage-reporter | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |