-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 994 Bytes
/
Copy pathci.yml
File metadata and controls
29 lines (27 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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