feat: Add R package for phylo2vec #115
Workflow file for this run
This file contains 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 Rust | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
# Commenting out the following lines will enable the beta and nightly builds | |
# currently not in use since we can't format the code with the beta and nightly builds | |
# - beta | |
# - nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Run linter | |
run: cargo fmt --check | |
- name: Compile Code | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |