Merge pull request #125 from COMBINE-lab/release-please--branches--ma… #128
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-latest] | |
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/[email protected] | |
with: | |
python-version: "3.10" | |
mamba-version: "*" | |
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: | | |
cd scripts | |
chmod +x test_simpleaf.sh | |
./test_simpleaf.sh | |
- name: Check job status | |
run: echo "This job's status is ${{ job.status }}." |