Skip to content

Commit

Permalink
ci: Add python code linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Jun 29, 2024
1 parent 47bcd9d commit c92a78c
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test-lib:
name: Test
name: Test bigtools
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'nightly' }}
strategy:
Expand Down Expand Up @@ -38,6 +38,7 @@ jobs:
run: cargo test --all

test-python:
name: Test pybigtools
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -65,8 +66,8 @@ jobs:
cd pybigtools
pytest -v
fmt:
name: Format
lint-rust:
name: Lint Rust
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
Expand All @@ -84,3 +85,20 @@ jobs:

- 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

0 comments on commit c92a78c

Please # to comment.