Skip to content

Add support for svg paths starting with m #47

Add support for svg paths starting with m

Add support for svg paths starting with m #47

Workflow file for this run

name: tests
on:
push:
paths-ignore:
- '**.md'
- 'docs/**'
- '.gitignore'
- '.pre-commit-config.yaml'
- 'Makefile'
jobs:
tests:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8']
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - python ${{ matrix.python-version }}
env:
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test
create-args: >-
python=${{ matrix.python-version }}
gdal=3.2.0
- name: Install dependencies
shell: bash -l {0}
run: poetry install --no-interaction --all-extras
- name: Lint
shell: bash -l {0}
run: flake8 src tests
- name: Test
if: env.coverage == 'false'
shell: bash -l {0}
run: pytest --doctest-modules src tests
env:
MPLBACKEND: agg
- name: Test with coverage
if: env.coverage == 'true'
shell: bash -l {0}
run: pytest --cov --doctest-modules src tests
env:
MPLBACKEND: agg
- name: Upload coverage to Codecov
if: env.coverage == 'true'
shell: bash -l {0}
run: |
coverage xml --fail-under=0
codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}