-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #942 from Avaiga/feature/improve-coverage-step
feat: make coverage a separate job
- Loading branch information
Showing
1 changed file
with
31 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|