-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
39 lines (32 loc) · 1.14 KB
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
name: CI
on:
push:
branches: ["**"]
pull_request:
jobs:
test:
name: test (linux)
runs-on: ubuntu-latest
# The pixi workspace targets linux-64 only (the dev `seq2logo` env needs
# Python 2.7, which has no macOS-arm64/Windows conda builds), so CI runs on
# Linux. The published wheel is pure-Python; cross-platform behaviour of the
# numba engine / pyarrow is covered by their upstream wheels.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # hatch-vcs derives the version from tags/history
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: latest
environments: default
- name: Install package (editable)
# Build isolation pulls the build backend (hatchling + hatch-vcs) from
# build-system.requires; hatch-vcs needs the git history fetched above.
run: pixi run pip install -e .
- name: Lint (ruff)
run: pixi run ruff check src tests
- name: Format check (black)
run: pixi run black --check src tests
- name: Tests (pytest)
run: pixi run pytest -q