-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 807 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (30 loc) · 807 Bytes
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
name: CI
# Lints, type-checks and builds the package. The code in this repository is generated from
# Mixedbread's monorepo, whose CI also runs the test suite against a mock server before a
# change reaches main here.
on:
push:
branches: [main]
pull_request:
jobs:
lint:
name: lint and build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
with:
version: "0.8.16"
- name: Install dependencies
run: uv sync --locked --group dev --all-extras
- name: Lint
run: |
uv run ruff check .
uv run ruff format --check .
- name: Type-check
run: |
uv run pyright
uv run mypy .
- name: Build
run: uv build