Skip to content

Tests

Tests #109

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches:
- "*"
schedule:
- cron: "59 23 * * 3"
jobs:
Tests:
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
environment-file: [ci/latest.yaml]
include:
- environment-file: ci/dev.yaml
os: ubuntu-latest
- environment-file: ci/min.yaml
os: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: "latest"
channel-priority: "flexible"
- name: Install geodatasets
run: pip install .
- name: run tests
run: pytest -v . -m "not request" --cov=geodatasets --cov-append --cov-report term-missing --cov-report xml --color=yes
- name: test data
run: pytest -v . -m "request" --cov=geodatasets --cov-append --cov-report term-missing --cov-report xml --color=yes
if: matrix.os == 'ubuntu-latest' && matrix.environment-file == 'ci/latest.yaml'
- uses: codecov/codecov-action@v3