fixed new flatten operation function, added first test structure #23
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/[email protected] | ||
cpp-tests: | ||
name: 🇨 Test | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
with: | ||
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: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
with: | ||
cmake-args: -DBUILD_MQT_CORE_BENCHMARKS=ON | ||
python-tests: | ||
name: 🐍 Test | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-python-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
code-ql: | ||
name: 📝 CodeQL | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-code-ql) | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
cd: | ||
name: 🚀 CD | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cd) | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
with: | ||
# Do not build emulated wheels for mqt-core to avoid issues with PyPI space limitations. | ||
build-emulated-wheels: false | ||
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 | ||
- cd | ||
Check failure on line 65 in .github/workflows/ci.yml
|
||
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,' | ||
}} | ||
${{ | ||
fromJSON(needs.change-detection.outputs.run-cd) | ||
&& '' || 'cd,' | ||
}} | ||
jobs: ${{ toJSON(needs) }} |