Skip to content

Commit cd7aa3d

Browse files
add CI workflow and basic test
1 parent 2969c63 commit cd7aa3d

File tree

14 files changed

+38
-0
lines changed

14 files changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install --upgrade pip
25+
pip install -r requirements.txt || pip install .
26+
27+
- name: Lint with black and flake8
28+
run: |
29+
pip install black flake8
30+
black --check .
31+
flake8 .
32+
33+
- name: Run tests
34+
run: |
35+
pip install pytest pytest-cov
36+
pytest --maxfail=1 --disable-warnings -q

.gitignore

Whitespace-only changes.

.pre-commit-config.yaml

Whitespace-only changes.

Dockerfile

Whitespace-only changes.

app/__init__.py

Whitespace-only changes.

app/config.py

Whitespace-only changes.

app/core/database.py

Whitespace-only changes.

app/core/logger.py

Whitespace-only changes.

app/core/utils.py

Whitespace-only changes.

app/main.py

Whitespace-only changes.

0 commit comments

Comments
 (0)