Skip to content

Make a nicer tskit demo notebook #60

Make a nicer tskit demo notebook

Make a nicer tskit demo notebook #60

Workflow file for this run

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