Repository navigation
Test against the development version of qiskit-addon-sqd - #50
Merged
Merged
Conversation
The existing Tests workflow installs every dependency from PyPI, so a breaking change upstream only surfaces here once it has been released. Add a nightly job that builds qiskit-addon-sqd from its main branch and pins the resulting wheel into pyproject.toml before running the suite, which gives advance warning instead. qiskit-addon-sqd is the only dependency built from a checkout. It is the one whose API this package calls directly -- the SQD integration tests drive its entry point, and the example notebook imports it -- and pinning it to a development wheel lets pip resolve its own requirements, so a qiskit release incompatible with sqd's main branch still shows up. Only Linux and the two ends of the supported Python range are covered. The matrix is a canary rather than a compatibility matrix, and the full cross product already runs in the Tests workflow. Development-version tests were first suggested in #6, which tracks several CI additions and stays open for the remaining ones. Assisted-by: Claude Opus 5
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Testsworkflow installs every dependency from PyPI, so a breaking change inqiskit-addon-sqdonly surfaces here once it has been released. This adds a nightlyDevelopment version testsworkflow that buildsqiskit-addon-sqdfrom itsmainbranch, pins the resulting wheel intopyproject.tomlwithextremal-python-dependencies, and runstox -e py,notebook,mpi.This was first suggested in #6, which tracks several CI additions. It ticks the "development version tests" box there; the minimum-version tests suggested in the same issue are not included here, so #6 should stay open.
qiskit-addon-sqdis the only dependency built from a checkout. It is the one whose API this package calls directly — the SQD integration tests drive its entry point, and the example notebook importsqiskit_addon_sqd.countsandqiskit_addon_sqd.fermion. Pinning it to a development wheel lets pip resolve its own requirements, so aqiskitrelease incompatible with sqd'smainbranch still shows up without buildingqiskithere too.The matrix is deliberately narrow — Linux, Python 3.10 and 3.14 — since it is a canary rather than a compatibility matrix, and the full cross product already runs in
Tests.Note that
pin-dependenciesalso appends a[tool.hatch.metadata]section, which is inert for this setuptools-based project.As a scheduled workflow, this will not run on
mainuntil after merge.This pull request was drafted by Claude Opus 5 under my guidance.