ci: add test for different features with cargo-hack
#173
Workflow file for this run
This file contains 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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Set up Rust | |
run: rustup show | |
- uses: mozilla-actions/sccache-action@v0.0.3 | |
- run: cargo test | |
working-directory: pyo3-polars | |
- run: cargo test --all-features | |
working-directory: pyo3-polars | |
- run: cargo test --features dtype-categorical | |
working-directory: pyo3-polars | |
- run: cargo test --features dtype-full | |
working-directory: pyo3-polars | |
- run: cargo test --features dtype-struct | |
working-directory: pyo3-polars | |
- run: cargo test --features dtype-array | |
working-directory: pyo3-polars | |
- run: cargo test --features lazy | |
working-directory: pyo3-polars | |
- run: make install | |
working-directory: example/extend_polars_python_dispatch | |
- run: venv/bin/python run.py | |
working-directory: example/extend_polars_python_dispatch |