Skip to content

Tests

Tests #2120

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * *"
jobs:
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
Test:
needs: Linting
name: ${{ matrix.os }}, ${{ matrix.env }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest]
env:
- ci/envs/310-no-optional-deps.yaml
- ci/envs/39-minimal.yaml
- ci/envs/311-no-expr.yaml
- ci/envs/311-latest.yaml
- ci/envs/311-latest-no-expr.yaml
- ci/envs/312-latest.yaml
include:
- env: ci/envs/311-latest.yaml
os: macos-latest
- env: ci/envs/311-latest.yaml
os: windows-latest
- env: ci/envs/312-dev.yaml
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ${{ matrix.env }}
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: Check and Log Environment
run: |
python -V
python -c "import geopandas; geopandas.show_versions();"
conda info
conda list
- name: Test
run: |
pytest -v -r a --color=yes --cov=dask_geopandas --cov-append --cov-report term-missing --cov-report xml .
- uses: codecov/codecov-action@v5