Skip to content

Add coverage installation step #13

Add coverage installation step

Add coverage installation step #13

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Install coverage
run: |
poetry run pip install coverage
- name: Run tests
run: |
poetry run pytest --cov=./ --cov-report=xml
- name: Check code coverage
run: |
python -m coverage report --fail-under=80