Add tests for wkt2svg tool #270
Workflow file for this run
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: Tests | |
| on: [push] | |
| jobs: | |
| python-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --requirement requirements.txt | |
| - name: Run tests | |
| run: pytest | |
| rust-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - name: Install C++ build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends cmake build-essential ninja-build | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Setup nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| components: clippy | |
| - name: Setup Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Build | |
| run: cargo build --all-targets --all-features | |
| - name: Clippy | |
| run: cargo clippy --no-deps --all-targets --all-features | |
| - name: Rust Tests | |
| run: cargo nextest run --all-features --all-targets | |
| - name: C++ Tests | |
| run: | | |
| ./target/debug/cxx-tests --gtest_color=yes |