TKF Underflow Protection and Log-Space Transition #288
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 stable | |
| on: | |
| push: | |
| branches-ignore: | |
| - "develop" | |
| pull_request: | |
| branches: [ "develop" ] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| skip_check: | |
| runs-on: ubuntu-latest | |
| # Map a step output to a job output | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@v5 | |
| with: | |
| # All of these options are optional, so you can remove them if you are happy with the defaults | |
| concurrent_skipping: 'same_content_newer' | |
| skip_after_successful_duplicate: 'true' | |
| cancel_others: 'true' | |
| paths_ignore: '["**/**.yml", "**/data/**"]' | |
| do_not_skip: '["workflow_dispatch"]' | |
| check: | |
| name: cargo check | |
| needs: skip_check | |
| if: needs.skip_check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| args: --manifest-path ./phylo/Cargo.toml | |
| test: | |
| name: cargo test | |
| needs: skip_check | |
| if: needs.skip_check.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - name: install cargo2junit | |
| run: | | |
| cargo install cargo2junit | |
| - name: Running cargo tests | |
| run: | | |
| cargo test --manifest-path ./phylo/Cargo.toml -- -Z unstable-options --format json --report-time > cargo_test.out | |
| - name: Display cargo test output | |
| if: always() | |
| run: | | |
| cat cargo_test.out | |
| - name: Running cargo2junit | |
| if: always() | |
| run: | | |
| cargo2junit < cargo_test.out > results.xml | |
| - name: Display cargo2junit output | |
| if: always() | |
| run: | | |
| cat results.xml | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| files: results.xml |