Softmax, Uniform, and build() tests to be added, also splitting curre… #663
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/[email protected] | |
| - 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: tests with cargo2junit | |
| run: | | |
| cargo test --manifest-path ./phylo/Cargo.toml -- -Z unstable-options --format json --report-time | cargo2junit > 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 |