Skip to content

Squashed commit of the following: #313

Squashed commit of the following:

Squashed commit of the following: #313

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: pre-commit/[email protected]
test:
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
os:
- ubuntu-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install .
- run: pip install '.[dev]'
- name: Test with Pytest
run: pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: pip install .
- run: pip install '.[docs]'
- name: Build docs
run: sphinx-build docs .docs