Skip to content

[pre-commit.ci] pre-commit autoupdate #286

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #286

name: PyTest & Code Coverage Report
on: [workflow_dispatch, push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.9'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Generate coverage report
run: |
pip install pytest-cov
pip install -r requirements-dev.txt
pytest --cov=./ --cov-report=xml --cov-report=html
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml