Skip to content

codecov

codecov #1

Workflow file for this run

name: codecov
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.10
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
python -m pytest --cov=PQAnalysis --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./htmlcov/
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
verbose: true