Skip to content

Erase coverage before starting runs #31

Erase coverage before starting runs

Erase coverage before starting runs #31

Workflow file for this run

name: Upload coverage
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Generate and upload coverage
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov coverage
- name: Run tests and generate coverage report
run: pytest
- name: Upload coverage report
uses: codecov/codecov-action@v3