Skip to content

Commit ffe53a4

Browse files
authored
Merge pull request #33 from pyconjp/terada/ci-cd
add GH Actions
2 parents 846b67b + be38255 commit ffe53a4

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed

.github/workflows/lint.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lint and Type Check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint-and-typecheck:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.13"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v3
26+
with:
27+
version: "latest"
28+
29+
- name: Install dependencies
30+
run: |
31+
uv sync --extra 'dev'
32+
33+
- name: Run ruff check
34+
run: |
35+
uv run ruff check .
36+
37+
- name: Run ruff format check
38+
run: |
39+
uv run ruff format --check .
40+
41+
- name: Run mypy
42+
run: |
43+
uv run mypy .

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212
[project.optional-dependencies]
1313
dev = [
1414
"httpx>=0.28.1",
15+
"mypy>=1.14.0",
1516
"pyright>=1.1.401",
1617
"pytest>=8.3.5",
1718
"pytest-asyncio>=1.0.0",

uv.lock

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)