Skip to content

Commit 3608cfb

Browse files
committed
ci: add github actions workflow and enhance tests
1 parent d0b4c02 commit 3608cfb

File tree

5 files changed

+1023
-0
lines changed

5 files changed

+1023
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.10"
21+
22+
- name: Install Poetry
23+
run: pip install poetry
24+
25+
- name: Install Dependencies
26+
run: poetry install
27+
28+
- name: Lint with Ruff
29+
run: poetry run ruff check .
30+
31+
- name: Type check with Mypy
32+
run: poetry run mypy .
33+
34+
- name: Test with Pytest
35+
run: poetry run pytest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ fastapi-builder-*/
5353
# Installer logs
5454
pip-log.txt
5555
pip-delete-this-directory.txt
56+
.venv/

0 commit comments

Comments
 (0)