-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for unreleased Qiskit #1950
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea, we had this coverage in the past where tests ran with terra main on each job. But blocking PRs on terra main was a bit too disruptive at the time (just from a dependency management PoV). So adding a dedicated job back to ensure we have some coverage of upcoming changes to terra is a good idea, especially if we do it in a non-blocking manner. The open question I have is mostly about the long term strategy for how/when we run this job.
.github/workflows/tests.yml
Outdated
unit-tests-latest-qiskit-terra: | ||
runs-on: ${{ matrix.os }} | ||
needs: [sdist, lint] | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
os: ["ubuntu-latest"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you thinking we should run this on every commit? Or was the eventual plan to run this job periodically when it's no longer a WIP
? We can set this up in a new workflow file and create a nightly cron job to run this test if we want to do it periodically, see: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to use this test case for testing deprecations and changes of Qiskit. I will remove this test case and only merge fixes in this PR.
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Other components run it daily: |
* add tests for unreleased Qiskit * Update .github/workflows/tests.yml Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Scheduled test for latest Qiskit * run latest Qiskit test at push * fix test * fix qiskit test again * fix test case for runtime parameter binding * remove on push/pull request from latest Qiskit unit test --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Summary
This PR is preparation for unreleased Qiskit to implement changes and remove deprecations (#1941 )
Details and comments
New test case
unit-tests-latest-qiskit-terra
is used to detect changes in the latest Qiskit and if any deprecation error found, this PR should be updatedChange logs:
bind_parameters
is replaced withassign_parameters
QuantumCircuit.i()
is replaced withQunatumCircuit.i()
by PR #1945