Tidy some usage, and mention edges early #69
Workflow file for this run
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| test-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Miniconda (for Pyodide world build) | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-activate-base: true | |
| - name: Install Rust (for Pyodide world build) | |
| run: | | |
| if ! command -v rustup >/dev/null 2>&1; then | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | |
| fi | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install the dependencies | |
| run: | | |
| python -m pip install -r requirements.txt | |
| - name: Build the Pyodide world | |
| run: | | |
| ./build_pyodide_world.sh | |
| - name: Build the JupyterLite site | |
| run: | | |
| ./build.sh | |
| - name: Install test dependencies | |
| run: | | |
| python -m pip install nbclient nbformat pytest tszip==0.2.6 sc2ts | |
| - name: Run notebook tests | |
| run: | | |
| pytest tests/test_notebooks_pyodide.py |