Skip to content

[do_tag] cargo fmt #171

[do_tag] cargo fmt

[do_tag] cargo fmt #171

Workflow file for this run

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/checkout@v2.4.2
- 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: |
cd scripts
chmod +x test_simpleaf.sh
ulimit -n 2048
./test_simpleaf.sh
- name: Check job status
run: echo "This job's status is ${{ job.status }}."