Skip to content

[pre-commit.ci] pre-commit autoupdate #390

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #390

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.7, 3.8, 3.9]
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Python Install Poetry
uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Run doctests in rst files
run: cd docs && poetry run make doctest && poetry run pytest --doctest-glob="*.rst"
- name: Run tests
run: poetry run pytest --cov=maha tests/ --cov-report=xml
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
verbose: true