Skip to content

[pre-commit.ci] pre-commit autoupdate (#38) #244

[pre-commit.ci] pre-commit autoupdate (#38)

[pre-commit.ci] pre-commit autoupdate (#38) #244

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
poetry-version: ["1.2.2"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- run: poetry install --with test
- name: Generate coverage report
run: poetry run pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
path_to_write_report: ./coverage/codecov_report.txt
verbose: true