β¬οΈπ¨βπ» Update cda-tum/mqt-workflows action to v1.8 #821
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: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
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: cda-tum/mqt-workflows/.github/workflows/reusable-change-detection.yml@v1.8 | ||
python-linter: | ||
name: π Lint | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-python-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-linter.yml@v1.8 | ||
python-tests: | ||
name: π Test | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-python-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.8 | ||
Check failure on line 29 in .github/workflows/ci.yml
|
||
with: | ||
enable-ubuntu2404: true | ||
enable-ubuntu2404-arm: false # not supported by BQSKit | ||
enable-macos13: true | ||
enable-macos14: true | ||
enable-windows2022: true | ||
code-ql: | ||
name: π CodeQL | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-code-ql) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-code-ql-python.yml@v1.8 | ||
required-checks-pass: # This job does nothing and is only used for branch protection | ||
name: π¦ Check | ||
if: always() | ||
needs: | ||
- change-detection | ||
- 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-python-tests) | ||
&& '' || 'python-tests,' | ||
}} | ||
${{ | ||
fromJSON(needs.change-detection.outputs.run-code-ql) | ||
&& '' || 'code-ql,' | ||
}} | ||
jobs: ${{ toJSON(needs) }} |