Modernize functime: Polars 1.x, Python 3.11+, uv build tooling (#263) #370
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
| name: Run Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'functime/**' | |
| - 'pyproject.toml' | |
| - "tests/**" | |
| - '.github/workflows/test.yml' | |
| pull_request: | |
| types: [ review_requested ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "latest" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Rust | |
| run: rustup show | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install functime | |
| env: | |
| RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down | |
| run: | | |
| uv sync --python ${{ matrix.python-version }} --extra cat --extra xgb --extra lgb --locked | |
| uv run --with "maturin>=1.5" -- maturin develop --extras=cat,xgb,lgb | |
| - name: Test | |
| env: | |
| FUNCTIME__TEST_MODE: "true" | |
| run: | | |
| uv run pytest tests -vv --show-capture=no --tb=line --benchmark-disable -k "not test_benchmarks" |