Skip to content

Feature/cicd

Feature/cicd #28

Workflow file for this run

name: Test Coverage
on:
push:
branches:
- main
- dev
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: build PQAnalysis
run: |
pip install .[test]
- name: Generate coverage report
run: |
python -m pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
verbose: true