Bump version to v3.2.5-6 #6
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: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test-rust-processor: | |
| name: Test Rust Processor | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: 1.79 | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: korap-treetagger-processor/target | |
| key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Run cargo tests | |
| working-directory: korap-treetagger-processor | |
| run: cargo test --release | |
| - name: Build release binary | |
| working-directory: korap-treetagger-processor | |
| run: cargo build --release | |
| - name: Test probability sorting | |
| working-directory: korap-treetagger-processor | |
| run: | | |
| cat tests/resources/sort_input.txt | ./target/release/korap-treetagger-processor postprocess > tests/resources/sort_actual.txt | |
| diff tests/resources/sort_expected.txt tests/resources/sort_actual.txt | |
| - name: Test lemma deduplication | |
| working-directory: korap-treetagger-processor | |
| run: | | |
| cat tests/resources/lemma_dedup_input.txt | ./target/release/korap-treetagger-processor postprocess > tests/resources/lemma_dedup_actual.txt | |
| diff tests/resources/lemma_dedup_expected.txt tests/resources/lemma_dedup_actual.txt |