ci(coverage): add missing configuration for coverage report #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |