-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 926 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Setup conda conda.
uses: conda-incubator/setup-miniconda@v3
with:
conda-channels: conda-forge,bioconda
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv and enable caching.
version: "0.5.16"
enable-cache: true
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest
- name: Check formatting
run: uv run ruff format --check
- name: Lint
run: uv run ruff check