rcf3 0.3.0

A Rust implementation of the Random Cut Forest algorithm for anomaly detection.
Documentation
name: Test - Python

on:
  push:
    branches:
      - main
    paths:
      - "**/*.py"
      - "src/**/*.rs"
      - ".github/workflows/test-python.yaml"
  pull_request:
    branches:
      - main
    paths:
      - "**/*.py"
      - "src/**/*.rs"
      - ".github/workflows/test-python.yaml"
  schedule:
    - cron: "0 0 * * 0"
  workflow_dispatch:
  workflow_call:

jobs:
  test:
    name: pytest (${{ matrix.os }}, ${{ matrix.container || 'host' }})
    runs-on: ${{ matrix.os }}
    container: ${{ case(contains(matrix.os, 'ubuntu'), matrix.container, null) }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - os: ubuntu-latest
            container: quay.io/pypa/manylinux_2_34
          - os: ubuntu-24.04-arm
            container: quay.io/pypa/manylinux_2_34
          - os: ubuntu-latest
            container: quay.io/pypa/musllinux_1_2_x86_64
          - os: macos-latest
          - os: windows-latest

    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
      - uses: astral-sh/setup-uv@v8.1.0
      - uses: mozilla-actions/sccache-action@v0.0.10
      - name: Run tests
        run: uvx nox -s test
        env:
          SCCACHE_GHA_ENABLED: "true"
          RUSTC_WRAPPER: "sccache"