Skip to content

GitAuto: Add code coverage ratio to README #2

GitAuto: Add code coverage ratio to README

GitAuto: Add code coverage ratio to README #2

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage
- name: Run tests with coverage
run: |
coverage run -m pytest
coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella