Skip to content

chore: add rust-toolchain.toml #107

chore: add rust-toolchain.toml

chore: add rust-toolchain.toml #107

Workflow file for this run

on:
push:
branches: [main, dev]
pull_request:
name: Python data round trips
jobs:
test-metadata:
name: Test Python metadata round trips
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
rust:
- stable
python: [ "3.13" ]
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2.7.5
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
version: "latest"
python-version: ${{ matrix.python }}
- name: run JSON metadata example
run: |
cargo run --example json_metadata --features derive
- name: run bincode metadata example
run: |
cargo run --example bincode_metadata --features derive
- name: setup Python and run tests
run: |
uv venv -p ${{ matrix.python }}
source .venv/bin/activate
uv pip install -r python/requirements_locked_3_13.txt
uv pip install python/tskit_glue
python -m pytest python