Skip to content

Move code coverage to own github workflow #7

Move code coverage to own github workflow

Move code coverage to own github workflow #7

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Check Code Coverage
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
permissions:
contents: read
pull-requests: write
jobs:
check-code-coverage:
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 setuptools
pip install -r test-requirements.txt
pip install -r requirements.txt
- name: Test with pytest
run: |
python -m pytest --cov --cov-report=xml
coverage report
shell: bash
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: '90 95'