Skip to content

Commit

Permalink
Merge pull request #14 from itayB/itayB-patch-1
Browse files Browse the repository at this point in the history
ci(tests): adding coverage report action
  • Loading branch information
itayB authored Dec 19, 2023
2 parents 8e91985 + d4d505e commit 844876f
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
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: Run Linters
run: make lint
- 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

0 comments on commit 844876f

Please sign in to comment.