core: bump geo to 0.29 and fix deprecation warings #531
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
on: [push, pull_request] | |
name: Tests and linting | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
wasm/node_modules | |
wasm/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | |
- run: cargo test | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings | |
- name: Run cargo fmt (python) | |
run: cargo fmt --all -- --check | |
working-directory: ./python | |
- name: Run cargo clippy (python) | |
run: cargo clippy -- -D warnings | |
working-directory: ./python | |
- name: Run cargo fmt (wasm) | |
run: cargo fmt --all -- --check | |
working-directory: ./wasm | |
- name: Run cargo clippy (wasm) | |
run: cargo clippy -- -D warnings | |
working-directory: ./wasm | |
flatbuffers: | |
name: Check FlatBuffers generated file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install unzip | |
run: sudo apt update && sudo apt install unzip | |
- name: Get flatc | |
run: wget https://github.com/google/flatbuffers/releases/download/v23.5.26/Linux.flatc.binary.g++-10.zip && unzip Linux.flatc.binary.g++-10.zip | |
- name: Generate rust code from schema | |
run: ./flatc --rust schema/lrs.fbs | |
- name: Ensure same output as commited | |
run: diff src/lrs_generated.rs lrs_generated.rs | |
reuse: | |
name: REUSE | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v4 | |
version: | |
name: Check binding's versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Check versions | |
run: python check_versions.py |