[pre-commit.ci] pre-commit autoupdate #408
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |