-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 947 Bytes
/
release.yml
File metadata and controls
48 lines (36 loc) · 947 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
name: Release
on:
push:
tags:
- "v*"
env:
NO_COLOR: "1"
_TYPER_FORCE_DISABLE_TERMINAL: "1"
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --extra dev --extra interactive
- name: Lint
run: uv run ruff check .
- name: Type check
run: uv run mypy reeln/
- name: Test
run: uv run python -m pytest tests/ -n auto --cov=reeln --cov-branch --cov-fail-under=100 -m "not integration" -q
- name: Build
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true