Skip to content

Commit e9fb31f

Browse files
committed
Add ci
1 parent 99688f3 commit e9fb31f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
'on':
4+
- push
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11" # You can adjust this to 3.13 if you want
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
pip install black pytest
24+
25+
- name: Check code formatting with Black
26+
run: |
27+
black --check src tests
28+
29+
- name: Run tests with pytest
30+
run: |
31+
PYTHONPATH=src pytest

0 commit comments

Comments
 (0)