Fix inverse PartOf estimate #81
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: Verify | |
| on: | |
| pull_request: | |
| jobs: | |
| merge-request-checks: | |
| name: Run verify.sh | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install diff-cover | |
| uses: threeal/[email protected] | |
| with: | |
| packages: diff_cover | |
| - uses: actions-rust-lang/[email protected] | |
| with: | |
| toolchain: stable | |
| - uses: actions/cache@v4 | |
| id: corpus-cache | |
| with: | |
| path: | | |
| relannis | |
| data | |
| data_ondisk | |
| key: ${{ runner.os }}-codecov-${{ hashFiles('graphannis/tests/searchtest.rs','graphannis/tests/searchtest_queries.csv', 'graphannis/build.rs') }} | |
| - name: Download test corpora | |
| if: steps.corpus-cache.outputs.cache-hit != 'true' | |
| run: test -d relannis/GUM/ -a -d relannis/pcc2.1/ -a -d relannis/subtok.demo || "./misc/download-test-corpora.sh" | |
| - name: Build CLI binary | |
| if: steps.corpus-cache.outputs.cache-hit != 'true' | |
| run: cargo build --release --bin annis | |
| - name: Import GUM corpus (memory) | |
| if: steps.corpus-cache.outputs.cache-hit != 'true' | |
| run: ./target/release/annis data --cmd 'import relannis/GUM' | |
| - name: Import pcc2.1 corpus (memory) | |
| if: steps.corpus-cache.outputs.cache-hit != 'true' | |
| run: ./target/release/annis data --cmd 'import relannis/pcc2.1' | |
| - name: Import subtok.demo corpus (memory) | |
| if: steps.corpus-cache.outputs.cache-hit != 'true' | |
| run: ./target/release/annis data --cmd 'import relannis/subtok.demo' | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Run verify.sh | |
| run: ./verify.sh | |
| - name: Generate code coverage comment | |
| id: pr | |
| run: | | |
| { | |
| echo 'COVERAGE_INFO<<EOF' | |
| diff-cover target/llvm-cov/tests.lcov | |
| echo EOF | |
| } >> "$GITHUB_ENV" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMMENT_OUTPUT: TRUE | |
| - uses: mshick/add-pr-comment@v2 | |
| with: | |
| message: | | |
| Commit ${{ github.event.pull_request.head.sha }} | |
| ``` | |
| ${{env.COVERAGE_INFO}} | |
| ``` |