Skip to content

Check test coverage

Check test coverage #9

Workflow file for this run

name: coverage
run-name: Check test coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
pip install coverage
- name: Test with coverage
run: |
coverage run -m unittest discover -s ./tests -p 'test_*.py'
coverage report