Skip to content

Commit

Permalink
Add CI workflow: lint + test
Browse files Browse the repository at this point in the history
  • Loading branch information
ravwojdyla committed Apr 29, 2024
1 parent f64ba4a commit cef57d1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
pull_request:
push:
branches: [main, test]

jobs:
pre-commit:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.1
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install '.[dev]'
- run: pytest
17 changes: 0 additions & 17 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CI](https://github.com/sgkit-dev/bio2zarr/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/sgkit-dev/bio2zarr/actions/workflows/ci.yml)

# bio2zarr
Convert bioinformatics file formats to Zarr

Expand Down

0 comments on commit cef57d1

Please sign in to comment.