Skip to content

Commit

Permalink
👷⬆️ update MQT workflows to v1.7 (#812)
Browse files Browse the repository at this point in the history
## 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
burgholzer authored Jan 22, 2025
1 parent 90717b4 commit 4176e32
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4176e32

Please sign in to comment.