Skip to content

add coverage.yml

add coverage.yml #1

Workflow file for this run

name: CodeCoverage
on: [push, pull_request, workflow_dispatch]
jobs:
run:
runs-on: [ubuntu-24.04]
strategy:
matrix:
python-versions: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: Generate Report
run: |
pip install coverage
coverage run -m unittest discover ./tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2