name: CI
on: [push, pull_request]

jobs:
  test-rust:
    runs-on: ubuntu-latest
    container: rust:latest
    steps:
      - uses: actions/checkout@v4
      - run: cargo test

  test-python:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install uv
        run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.local/bin" >> $GITHUB_PATH
      - run: |
          uv python install 3.13
          uv pip install --system blake3 pytest coren irohds duckdb platformdirs certifi numpy
          PYTHONPATH=python uv run --python 3.13 pytest python/tests -q
