Skip to content

Merge pull request #26 from quant-aq/lswainemoore-patch-2 #92

Merge pull request #26 from quant-aq/lswainemoore-patch-2

Merge pull request #26 from quant-aq/lswainemoore-patch-2 #92

name: run and build
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
name: Python ${{ matrix.python }} tests
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python }}
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
- name: Install dependencies
run: poetry install --no-interaction
- name: Run tests and generate coverage report
run: |
poetry run pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true