Merge branch 'main' of github.com:munich-quantum-toolkit/debugger #240
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - assertion-tools | |
| - assertion-compilation | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| change-detection: | |
| name: 🔍 Change | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@v1.9.0 | |
| cpp-tests: | |
| name: 🇨 Test | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-cpp-tests) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-ci.yml@v1.9.0 | |
| permissions: | |
| id-token: write # Explicitly allows the `id-token: write` permission for this job | |
| contents: read | |
| with: | |
| cmake-args: -DEIGEN_BUILD_TESTING=OFF -DEIGEN_BUILD_PKGCONFIG=OFF -DBUILD_TESTING=OFF -DCMAKE_Fortran_COMPILER=OFF | |
| cmake-args-macos: -DMQT_CORE_WITH_GMP=ON | |
| cpp-linter: | |
| name: 🇨 Lint | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-cpp-linter) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@v1.9.0 | |
| python-tests: | |
| name: 🐍 Test | |
| needs: change-detection | |
| permissions: | |
| id-token: write # Explicitly allows the `id-token: write` permission for this job | |
| contents: read | |
| if: fromJSON(needs.change-detection.outputs.run-python-tests) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-ci.yml@v1.9.0 | |
| code-ql: | |
| name: 📝 CodeQL | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-code-ql) | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-code-ql.yml@v1.9.0 | |
| required-checks-pass: # This job does nothing and is only used for branch protection | |
| name: 🚦 Check | |
| if: always() | |
| needs: | |
| - change-detection | |
| - cpp-tests | |
| - cpp-linter | |
| - python-tests | |
| - code-ql | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| allowed-skips: >- | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-cpp-tests) | |
| && '' || 'cpp-tests,' | |
| }} | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-cpp-linter) | |
| && '' || 'cpp-linter,' | |
| }} | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-python-tests) | |
| && '' || 'python-tests,' | |
| }} | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-code-ql) | |
| && '' || 'code-ql,' | |
| }} | |
| jobs: ${{ toJSON(needs) }} |