Skip to content

Test both master and released branch#153

Open
BoxiLi wants to merge 3 commits intoqutip:mainfrom
BoxiLi:qutip-qip-version
Open

Test both master and released branch#153
BoxiLi wants to merge 3 commits intoqutip:mainfrom
BoxiLi:qutip-qip-version

Conversation

@BoxiLi
Copy link
Copy Markdown
Member

@BoxiLi BoxiLi commented Apr 9, 2026

Test for v4-release, v5-release and v5-master. Publish only the two released versions.

In this way, people will not see deprecation warnings in the unreleased master branch. But all notebooks should pass for both released and master versions

The downside is that we add one more test branch.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the tutorial notebook CI workflows to test against both released and master versions of QuTiP (v4 release, v5 release, v5 master), while only publishing artifacts for released versions to avoid exposing master-branch deprecation warnings.

Changes:

  • Expand the test matrix to include v4-release, v5-release, and v5-master with separate install specs.
  • Switch QuTiP/QIP installation to use pip specs (PyPI releases or git refs) while still sourcing dependency requirements from a checked-out QuTiP branch.
  • Update artifact naming and (for notebook_ci.yaml) publish step to download only the released artifacts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
.github/workflows/notebook_ci.yaml Adds 3-way matrix (v4 release, v5 release, v5 master), changes install strategy, and publishes only released artifacts.
.github/workflows/nightly_ci.yaml Mirrors the 3-way matrix and install strategy changes for scheduled nightly runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/nightly_ci.yaml
Comment thread .github/workflows/notebook_ci.yaml
Comment thread .github/workflows/nightly_ci.yaml
Comment thread .github/workflows/notebook_ci.yaml
Comment thread .github/workflows/notebook_ci.yaml
Comment thread .github/workflows/nightly_ci.yaml
@BoxiLi BoxiLi requested a review from Ericgig April 10, 2026 06:51
@hodgestar
Copy link
Copy Markdown
Contributor

@BoxiLi This looks like a good idea to me. Once tests pass here we could merge and then check that the publishing works correctly.

@BoxiLi
Copy link
Copy Markdown
Member Author

BoxiLi commented Apr 15, 2026

Looks like when I remove the package installation from requirement.txt, the test breaks, because Cython is not installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants