Skip to content

Bump to bigtools 0.5.3-dev and pybigtools 0.2.2-dev #211

Bump to bigtools 0.5.3-dev and pybigtools 0.2.2-dev

Bump to bigtools 0.5.3-dev and pybigtools 0.2.2-dev #211

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
test-lib:
name: Test bigtools
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:
name: Test pybigtools
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
cd pybigtools
pip install -e .[test]
- name: Run tests
run: |
cd pybigtools
pytest -v
lint-rust:
name: Lint Rust
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
lint-python:
name: Lint Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install ruff
run: pip install ruff
- name: Check formatting
run: |
cd pybigtools
ruff check