Skip to content

Commit c22a896

Browse files
committed
feat: github actions
1 parent e380411 commit c22a896

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "uv"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
python:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- name: "Set up Python"
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version-file: "pyproject.toml"
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
with:
21+
enable-cache: true
22+
- name: Sync dependencies
23+
run: uv sync --all-packages --all-groups
24+
- name: Run tests
25+
run: uv run pytest
26+
- name: Run linter
27+
run: uv run ruff check .
28+
- name: Run mypy
29+
run: uv run mypy .
30+
- name: Run basedpyright
31+
run: uv run basedpyright .

.github/workflows/publish.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Publish"
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v5
19+
- name: "Set up Python"
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version-file: "pyproject.toml"
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
25+
- name: Build
26+
run: uv build
27+
- name: Publish
28+
run: uv publish

0 commit comments

Comments
 (0)