8000 Add tests for Pyodide build with Pixi and Node.js by IvanIsCoding · Pull Request #1450 · Qiskit/rustworkx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add tests for Pyodide build with Pixi and Node.js #1450

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

Open
wants to merge 52 commits into
base: main
Choose a base branch
from

Conversation

IvanIsCoding
Copy link
Collaborator
@IvanIsCoding IvanIsCoding commented May 15, 2025

Follow up of #1447 and #1449. True diff: IvanIsCoding/rustworkx@pixi-pyodide...IvanIsCoding:rustworkx:test-pyodide

This builds on the preview two PRs by adding a Pixi task that does the following:

  • Runs npm install to install Pyodide
  • Finds the wheel from Pyodide's build
  • Creates a Pyodide environment inside Node.js with rustworkx
  • Mounts our tests folder into Pyodide's memory with Node.js's file system
  • Runs a smoke test the full test suite inside Pyodide via Node.js

This will catch regressions for Pyodide. Because Pixi has a lockfile and so does Node.js, I think it will be reproducible.

Note that Pyodide installs NumPy and more because it is one of our dependencies. We also need to install networkx. Because Pyodide has a lockfile internally (https://github.com/pyodide/pyodide-lock) that ships in the Node distribution, I think it will keep installing the same numpy/networkx/matplotlib from a fixed URL so I think overall this will be reproducible.

@coveralls
Copy link
coveralls commented May 15, 2025

Pull Request Test Coverage Report for Build 15337797521

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.236%

Totals Coverage Status
Change from base Build 15333628866: 0.0%
Covered Lines: 18733
Relevant Lines: 19670

💛 - Coveralls

@IvanIsCoding IvanIsCoding added this to the 0.17.0 milestone May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0