-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 1009 Bytes
/
Copy pathci.yml
File metadata and controls
50 lines (38 loc) · 1009 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
container: astral/uv:python${{ matrix.python-version }}-bookworm-slim
steps:
- uses: actions/checkout@v6
# If you have uv.lock → prefer: uv sync --locked
- name: Install deps
run: uv pip install --system -e ".[dev]"
- name: Ruff
run: uv run ruff check src test
- name: Mypy
run: uv run mypy src/kinexon_handball_api
- name: Pytest
run: uv run pytest
build:
runs-on: ubuntu-latest
needs: lint-and-test
container: astral/uv:python3.13-bookworm-slim
steps:
- uses: actions/checkout@v6
- name: Build package
run: uv build
- name: Upload dist artifacts
uses: actions/upload-artifact@v7
with:
name: kinexon-dist
path: dist/