Skip to content

ci(coverage): add missing configuration for coverage report #33

ci(coverage): add missing configuration for coverage report

ci(coverage): add missing configuration for coverage report #33

Workflow file for this run

# This workflow will install Python dependencies, run tests check the coverage
name: Test with coverage
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Test with pytest
run: py.test -o junit_family=xunit2 --junitxml result.xml -v --ff --cov=serversion --cov-report=xml --cov-report=term tests
- name: Coverage Report
if: always()
uses: aGallea/tests-coverage-report@1.3.1
with:
min-coverage-percentage: '100'
fail-under-coverage-percentage: 'true'
cobertura-path: ./coverage.xml
junit-path: ./result.xml