Merged workflows and add coverage #7
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
name: Main Workflow | |
on: | |
push: | |
branches: | |
- develop2 | |
- release/* | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
- 'release/*' | |
workflow_dispatch: | |
jobs: | |
linux_suite: | |
uses: ./.github/workflows/linux-tests.yml | |
name: Linux test suite | |
osx_suite: | |
uses: ./.github/workflows/osx-tests.yml | |
name: OSX test suite | |
windows_suite: | |
uses: ./.github/workflows/win-tests.yml | |
name: Windows test suite | |
code_coverage: | |
runs-on: ubuntu-latest | |
needs: [linux_suite, osx_suite, windows_suite] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Download coverage artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: true | |
- name: Merge coverage reports | |
run: | | |
pip install coverage | |
coverage combine | |
coverage report | |
coverage xml -o merged-coverage.xml | |
coverage html -d coverage-html |