Skip to content

Centralize GitHub workflows and add code coverage #2

Centralize GitHub workflows and add code coverage

Centralize GitHub workflows and add code coverage #2

Workflow file for this run

name: Main Workflow
on:
push:
branches:
- develop2
- release/*
- '*'
pull_request:
branches:
- '*'
- 'release/*'
workflow_dispatch:
jobs:
linux-tests:
uses: ./.github/workflows/linux-tests.yml

Check failure on line 16 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Main Workflow

Invalid workflow file

The workflow is not valid. In .github/workflows/main.yml (Line: 16, Col: 11): Error from called workflow conan-io/conan/.github/workflows/linux-tests.yml@be96da1f2db97f5329525de0e6b64b7e949762f1 (Line: 96, Col: 30): Job 'deploy_to_pypi_test' depends on unknown job 'linux_test_suite'. In .github/workflows/main.yml (Line: 16, Col: 11): Error from called workflow conan-io/conan/.github/workflows/linux-tests.yml@be96da1f2db97f5329525de0e6b64b7e949762f1 (Line: 96, Col: 48): Job 'deploy_to_pypi_test' depends on unknown job 'linux_docker_tests'.
# osx-tests:
# uses: ./.github/workflows/osx-tests.yml
# windows-tests:
# uses: ./.github/workflows/win-tests.yml
code_coverage:
runs-on: ubuntu-latest
# needs: [linux-tests, osx-tests, windows-tests]
needs: [linux-tests]
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