We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8c78a commit f29e629Copy full SHA for f29e629
1 file changed
.github/workflows/python.yml
@@ -0,0 +1,42 @@
1
+name: Python CI
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
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
36
+ pip install black
37
+ black --check .
38
39
+ - name: 🔍 Lint with ruff
40
41
+ pip install ruff
42
+ ruff check .
0 commit comments