File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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 .
You can’t perform that action at this time.
0 commit comments