Merge pull request #147 from COMBINE-lab/dev #148
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: simpleaf-check | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check_formatting: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt | |
- name: Check format | |
run: cargo fmt -- --check | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Install conda env | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
channels: conda-forge,default,bioconda | |
channel-priority: true | |
activate-environment: anaconda-client-env | |
environment-file: simpleaf_conda_env.yml | |
- name: Test simpleaf | |
shell: bash -l {0} | |
run: | | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib:$CONDA_PREFIX/lib64 | |
cd scripts | |
chmod +x test_simpleaf.sh | |
./test_simpleaf.sh | |
- name: Check job status | |
run: echo "This job's status is ${{ job.status }}." |