Skip to content

Update code coverage command in workflow #16

Update code coverage command in workflow

Update code coverage command in workflow #16

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: Run tests
run: |
poetry run pytest --cov=./ --cov-report=xml
- name: Check code coverage
run: |
poetry run coverage report --fail-under=80