From 4176e32376f0289f616bde18e9dbb2f1333a85fb Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Wed, 22 Jan 2025 20:49:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=AC=86=EF=B8=8F=20update=20MQT?= =?UTF-8?q?=20workflows=20to=20v1.7=20(#812)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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: - [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 --- .github/workflows/cd.yml | 11 +++-------- .github/workflows/ci.yml | 23 ++++++++++------------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index af026b38c..344beae74 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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/reusable-python-packaging.yml@v1.6 - 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/reusable-python-packaging.yml@v1.7 # Downloads the previously generated artifacts and deploys to PyPI on published releases. deploy: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ce0925f1..293eae4e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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,13 +115,13 @@ 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 @@ -129,7 +129,7 @@ jobs: 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/reusable-python-packaging.yml@v1.6 - 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/reusable-python-packaging.yml@v1.7 required-checks-pass: # This job does nothing and is only used for branch protection name: 🚦 Check