Skip to content

Add citation badge and install examples #167

Add citation badge and install examples

Add citation badge and install examples #167

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
test-lib:
name: Test
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'nightly' }}
strategy:
matrix:
rust: [stable, nightly]
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Build without default features
run: cargo build --no-default-features
- name: Build with all features
run: cargo build --all-features
- name: Execute all tests
run: cargo test --all
test-python:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install pybigtools
run: |
pip install maturin pytest
cd pybigtools
pip install -e .
- name: Install
run: |
cd pybigtools
pytest -v
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
- name: Check formatting of all crates in the workspace
run: cargo fmt --all -- --check