Skip to content

Commit

Permalink
Run and debug JS script for Emscripten job
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Mar 19, 2024
1 parent 360e48a commit ac6d92d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,21 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Set up Pyodide virtual environment
run: |
pyodide venv .venv-pyodide
source .venv-pyodide/bin/activate
pip install dist/*.whl
# Remove pooch for now due to problems with downloading data files
pip install matplotlib>=3.5 numpydoc>=1.5 pytest>=7.0 pytest-cov>=2.11.0 pytest-localserver pytest-faulthandler
# - name: Set up Pyodide virtual environment
# run: |
# pyodide venv .venv-pyodide
# source .venv-pyodide/bin/activate
# pip install dist/*.whl
# Remove pooch for now due to problems with downloading data files
# pip install matplotlib>=3.5 numpydoc>=1.5 pytest>=7.0 pytest-cov>=2.11.0 pytest-localserver pytest-faulthandler

- name: Test scikit-image for Pyodide
run: |
pyodide venv .venv-pyodide
source .venv-pyodide/bin/activate
cd ..
pytest --doctest-modules --cov=skimage --showlocals --pyargs skimage
# pytest --doctest-modules --cov=skimage --showlocals --pyargs skimage
# use the test.js script instead and don't run in venv
npm install pyodide@${{ env.PYODIDE_VERSION }}
node tools/emscripten/pytest_scikit_image_pyodide.js --pyargs skimage

0 comments on commit ac6d92d

Please sign in to comment.