fix: store checkpoint complex values as fixed arrays #7
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: python -m venv .venv | |
| - run: . .venv/bin/activate && python -m pip install maturin pytest numpy | |
| - run: cargo clippy -- -D warnings | |
| - run: cargo test | |
| - run: cargo check | |
| - name: Install HDF5 | |
| run: sudo apt-get update && sudo apt-get install -y libhdf5-dev | |
| - run: cargo test --features checkpoint-hdf5 | |
| - run: cargo clippy --features checkpoint-hdf5 -- -D warnings | |
| - run: . .venv/bin/activate && maturin develop | |
| - run: . .venv/bin/activate && pytest tests/python -q | |
| - name: Header drift check | |
| run: | | |
| cargo install cbindgen --locked | |
| cbindgen --config cbindgen.toml --output /tmp/kore_check.h | |
| diff include/kore.h /tmp/kore_check.h |