-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷⬆️ update MQT workflows to v1.7 (#812)
## Description This small PR updates the MQT workflows to version 1.7, which includes some fixes for CD jobs that were overlooked in v1.6 ## Checklist: <!--- This checklist serves as a reminder of a couple of things that ensure your pull request will be merged swiftly. --> - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines. Signed-off-by: burgholzer <[email protected]>
- Loading branch information
1 parent
90717b4
commit 4176e32
Showing
2 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,11 @@ permissions: | |
|
||
jobs: | ||
# Builds the sdist and wheels on all supported platforms and uploads the resulting | ||
# wheels as GitHub artifacts `dev-cibw-*`, `test-cibw-*`, or `cibw-*`, depending on | ||
# whether the workflow is triggered from a PR, a push to main, or a release, respectively. | ||
# wheels as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether the | ||
# workflow is triggered from a PR or a release, respectively. | ||
python-packaging: | ||
name: 🐍 Packaging | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
with: | ||
# Do not include local version information on pushes to main to facilitate TestPyPI uploads. | ||
no-local-version: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} | ||
# Do not build emulated wheels for mqt-core to avoid issues with PyPI space limitations. | ||
build-emulated-wheels: false | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
|
||
# Downloads the previously generated artifacts and deploys to PyPI on published releases. | ||
deploy: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,13 @@ concurrency: | |
jobs: | ||
change-detection: | ||
name: 🔍 Change | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-change-detection.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-change-detection.yml@v1.7 | ||
|
||
cpp-tests: | ||
name: 🇨 Test | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.7 | ||
with: | ||
# Runs to enable | ||
enable-ubuntu2404-gcc-release: true | ||
|
@@ -68,7 +68,7 @@ jobs: | |
name: 🇨 Test (Extensive) | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci') | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.7 | ||
with: | ||
# Runs to enable | ||
enable-ubuntu2404-gcc-debug: true | ||
|
@@ -115,21 +115,21 @@ jobs: | |
name: 🇨 Coverage | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-coverage.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-coverage.yml@v1.7 | ||
|
||
cpp-linter: | ||
name: 🇨 Lint | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-cpp-linter) | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-linter.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-linter.yml@v1.7 | ||
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/reusable-python-ci.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.7 | ||
with: | ||
# Runs to enable | ||
enable-ubuntu2404: true | ||
|
@@ -148,7 +148,7 @@ jobs: | |
name: 🐍 Test (Extensive) | ||
needs: change-detection | ||
if: fromJSON(needs.change-detection.outputs.run-python-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-python-ci') | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.7 | ||
with: | ||
# Runs to enable | ||
enable-ubuntu2204: true | ||
|
@@ -166,22 +166,19 @@ jobs: | |
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.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-linter.yml@v1.7 | ||
|
||
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.yml@v1.6 | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-code-ql.yml@v1.7 | ||
|
||
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 | ||
uses: cda-tum/mqt-workflows/.github/workflows/[email protected] | ||
|
||
required-checks-pass: # This job does nothing and is only used for branch protection | ||
name: 🚦 Check | ||
|