Skip to content

Commit

Permalink
Merge pull request #942 from Avaiga/feature/improve-coverage-step
Browse files Browse the repository at this point in the history
feat: make coverage a separate job
  • Loading branch information
joaoandre-avaiga authored Mar 7, 2024
2 parents 2d9a78d + ba10156 commit 1c1fcbc
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/overall-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,35 @@ jobs:
partial-tests:
uses: ./.github/workflows/partial-tests.yml

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
id: install-dependencies
uses: ./.github/actions/install
with:
python-version: '3.11'
os: 'ubuntu-latest'
pipfile-version: 'min'

- name: Pytest
run: |
pipenv run pytest --cov=taipy --cov-report="xml:overall-coverage.xml" tests
- name: Coverage
uses: orgoro/[email protected]
with:
coverageFile: overall-coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}

overall-tests:
needs: [partial-tests]
needs: [coverage, partial-tests]
timeout-minutes: 50
strategy:
fail-fast: false
Expand All @@ -37,17 +64,11 @@ jobs:
pipfile-version: ${{ matrix.pipfile-version }}

- name: Pytest
run: pipenv run pytest -m "not orchestrator_dispatcher and not standalone and not teste2e" --cov=taipy --cov-append --cov-report="xml:overall-coverage.xml" --cov-report term-missing tests

- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' && matrix.pipfile-version == 'min'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./overall-coverage.xml
title: Taipy Overall Coverage Report
run: |
pipenv run pytest -m "not orchestrator_dispatcher and not standalone and not teste2e" tests
intermittent-tests:
needs: [partial-tests]
needs: [coverage, partial-tests]
timeout-minutes: 40
strategy:
fail-fast: false
Expand Down

0 comments on commit 1c1fcbc

Please sign in to comment.