Skip to content

Commit d5098e0

Browse files
⬆️👨‍💻 Update munich-quantum-toolkit/workflows action to v1.15 (#599)
1 parent b03ade2 commit d5098e0

File tree

5 files changed

+68
-19
lines changed

5 files changed

+68
-19
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
build-sdist:
1414
name: 🐍 Packaging
15-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@v1.14
15+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@v1.15
1616

1717
# Builds wheels on all supported platforms using cibuildwheel.
1818
# The wheels are uploaded as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether
@@ -31,7 +31,7 @@ jobs:
3131
windows-2022,
3232
windows-11-arm,
3333
]
34-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@v1.14
34+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@v1.15
3535
with:
3636
runs-on: ${{ matrix.runs-on }}
3737

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
change-detection:
1616
name: 🔍 Change
17-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@v1.14
17+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@v1.15
1818

1919
cpp-tests-ubuntu:
2020
name: 🇨‌ Test 🐧
@@ -30,7 +30,7 @@ jobs:
3030
- runs-on: ubuntu-24.04
3131
compiler: gcc
3232
config: Debug
33-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@v1.14
33+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@v1.15
3434
with:
3535
runs-on: ${{ matrix.runs-on }}
3636
compiler: ${{ matrix.compiler }}
@@ -50,7 +50,7 @@ jobs:
5050
- runs-on: macos-14
5151
compiler: clang
5252
config: Debug
53-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@v1.14
53+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@v1.15
5454
with:
5555
runs-on: ${{ matrix.runs-on }}
5656
compiler: ${{ matrix.compiler }}
@@ -70,7 +70,7 @@ jobs:
7070
- runs-on: windows-2022
7171
compiler: msvc
7272
config: Debug
73-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@v1.14
73+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@v1.15
7474
with:
7575
runs-on: ${{ matrix.runs-on }}
7676
compiler: ${{ matrix.compiler }}
@@ -88,7 +88,7 @@ jobs:
8888
[ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm]
8989
compiler: [gcc, clang, clang-19, clang-20]
9090
config: [Release, Debug]
91-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@v1.14
91+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@v1.15
9292
with:
9393
runs-on: ${{ matrix.runs-on }}
9494
compiler: ${{ matrix.compiler }}
@@ -110,7 +110,7 @@ jobs:
110110
compiler: gcc-14
111111
- runs-on: macos-15
112112
compiler: gcc-15
113-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@v1.14
113+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@v1.15
114114
with:
115115
runs-on: ${{ matrix.runs-on }}
116116
compiler: ${{ matrix.compiler }}
@@ -127,7 +127,7 @@ jobs:
127127
runs-on: [windows-2022, windows-2025, windows-11-arm]
128128
compiler: [msvc, clang]
129129
config: [Release, Debug]
130-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@v1.14
130+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@v1.15
131131
with:
132132
runs-on: ${{ matrix.runs-on }}
133133
compiler: ${{ matrix.compiler }}
@@ -137,7 +137,7 @@ jobs:
137137
name: 🇨‌ Coverage
138138
needs: change-detection
139139
if: fromJSON(needs.change-detection.outputs.run-cpp-tests)
140-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-coverage.yml@v1.14
140+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-coverage.yml@v1.15
141141
permissions:
142142
contents: read
143143
id-token: write
@@ -146,7 +146,7 @@ jobs:
146146
name: 🇨‌ Lint
147147
needs: change-detection
148148
if: fromJSON(needs.change-detection.outputs.run-cpp-linter)
149-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@v1.14
149+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@v1.15
150150
with:
151151
clang-version: 20
152152
cmake-args: -DBUILD_MQT_DDSIM_BINDINGS=ON
@@ -163,15 +163,15 @@ jobs:
163163
matrix:
164164
runs-on:
165165
[ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-14, windows-2022]
166-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@v1.14
166+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@v1.15
167167
with:
168168
runs-on: ${{ matrix.runs-on }}
169169

170170
python-coverage:
171171
name: 🐍 Coverage
172172
needs: [change-detection, python-tests]
173173
if: fromJSON(needs.change-detection.outputs.run-python-tests)
174-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@v1.14
174+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@v1.15
175175
permissions:
176176
contents: read
177177
id-token: write
@@ -188,27 +188,27 @@ jobs:
188188
exclude:
189189
# see https://github.com/munich-quantum-toolkit/ddsim/issues/597
190190
- runs-on: macos-15
191-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@v1.14
191+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@v1.15
192192
with:
193193
runs-on: ${{ matrix.runs-on }}
194194

195195
python-linter:
196196
name: 🐍 Lint
197197
needs: change-detection
198198
if: fromJSON(needs.change-detection.outputs.run-python-tests)
199-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@v1.14
199+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@v1.15
200200

201201
code-ql:
202202
name: 📝 CodeQL
203203
needs: change-detection
204204
if: fromJSON(needs.change-detection.outputs.run-code-ql)
205-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-code-ql.yml@v1.14
205+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-code-ql.yml@v1.15
206206

207207
build-sdist:
208208
name: 🚀 CD
209209
needs: change-detection
210210
if: fromJSON(needs.change-detection.outputs.run-cd)
211-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@v1.14
211+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@v1.15
212212

213213
build-wheel:
214214
name: 🚀 CD
@@ -226,7 +226,7 @@ jobs:
226226
windows-2022,
227227
windows-11-arm,
228228
]
229-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@v1.14
229+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@v1.15
230230
with:
231231
runs-on: ${{ matrix.runs-on }}
232232

.github/workflows/update-mqt-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
jobs:
2222
update-mqt-core:
2323
name: ⬆️ Update MQT Core
24-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-mqt-core-update.yml@v1.14
24+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-mqt-core-update.yml@v1.15
2525
with:
2626
update-to-head: ${{ github.event.inputs.update-to-head == 'true' }}
2727
secrets:

.github/workflows/upstream.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Qiskit Upstream Tests
2+
on:
3+
schedule:
4+
# Run every Monday at 00:00 UTC
5+
- cron: "0 0 * * 1"
6+
pull_request:
7+
paths:
8+
- ".github/workflows/upstream.yml"
9+
workflow_dispatch: # Allow manual triggering
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
qiskit-upstream-tests:
17+
name: 🐍⚛️
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
runs-on: [ubuntu-24.04, macos-14, windows-2022]
22+
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]
23+
with:
24+
runs-on: ${{ matrix.runs-on }}
25+
26+
create-issue-on-failure:
27+
name: Create issue on failure
28+
needs: qiskit-upstream-tests
29+
if: ${{ always() }}
30+
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]
31+
with:
32+
tests-result: ${{ needs.qiskit-upstream-tests.result }}
33+
permissions:
34+
contents: read
35+
issues: write # Needed to create/update issues

noxfile.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def _run_tests(
4646
session: nox.Session,
4747
*,
4848
install_args: Sequence[str] = (),
49+
extra_command: Sequence[str] = (),
4950
run_args: Sequence[str] = (),
5051
) -> None:
5152
env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
@@ -74,6 +75,8 @@ def _run_tests(
7475
*install_args,
7576
env=env,
7677
)
78+
if extra_command:
79+
session.run(*extra_command, env=env)
7780
if "--cov" in session.posargs:
7881
# try to use the lighter-weight `sys.monitoring` coverage core
7982
env["COVERAGE_CORE"] = "sysmon"
@@ -111,6 +114,17 @@ def minimums(session: nox.Session) -> None:
111114
session.run("uv", "lock", "--refresh", env=env)
112115

113116

117+
@nox.session(reuse_venv=True, venv_backend="uv", python=PYTHON_ALL_VERSIONS)
118+
def qiskit(session: nox.Session) -> None:
119+
"""Tests against the latest version of Qiskit."""
120+
_run_tests(
121+
session,
122+
extra_command=["uv", "pip", "install", "qiskit[qasm3-import] @ git+https://github.com/Qiskit/qiskit.git"],
123+
)
124+
env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
125+
session.run("uv", "pip", "show", "qiskit", env=env)
126+
127+
114128
@nox.session(reuse_venv=True)
115129
def docs(session: nox.Session) -> None:
116130
"""Build the docs. Use "--non-interactive" to avoid serving. Pass "-b linkcheck" to check links."""

0 commit comments

Comments
 (0)