Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(tests): adding coverage report action #14

Merged
merged 4 commits into from
Dec 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
name: Test, Lint
# This workflow will install Python dependencies, run tests check the coverage

on: [push]
name: Test with coverage

on:
pull_request:

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- 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: Run tests
run: make test
- name: Test with pytest
run: py.test -v --ff --cov=serversion --cov-report=xml --cov-report=term tests
itayB marked this conversation as resolved.
Show resolved Hide resolved
- name: Run Linters
run: make lint
itayB marked this conversation as resolved.
Show resolved Hide resolved
itayB marked this conversation as resolved.
Show resolved Hide resolved
- 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
itayB marked this conversation as resolved.
Show resolved Hide resolved