Skip to content

Commit f29e629

Browse files
committed
Add Dockerfile
1 parent 7f8c78a commit f29e629

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/python.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test and Lint
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: 🧾 Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: 🐍 Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.13'
22+
23+
- name: 📦 Install Poetry
24+
run: |
25+
pip install poetry
26+
poetry config virtualenvs.create false
27+
28+
- name: 📄 Install dependencies
29+
run: poetry install --no-interaction --no-root
30+
31+
- name: ✅ Run tests
32+
run: poetry run pytest -v
33+
34+
- name: 🧼 Check formatting
35+
run: |
36+
pip install black
37+
black --check .
38+
39+
- name: 🔍 Lint with ruff
40+
run: |
41+
pip install ruff
42+
ruff check .

0 commit comments

Comments
 (0)