Skip to content

Commit 1ed8cca

Browse files
committed
ci: Add CI workflow for testing and code formatting with Black
Signed-off-by: Eden Reich <[email protected]>
1 parent 8e4bcb7 commit 1ed8cca

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-24.04
15+
name: Test
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
pip install black==24.10.0 pytest
30+
31+
- name: Check formatting with Black
32+
run: black --check .
33+
34+
- name: Run tests
35+
run: pytest tests/

0 commit comments

Comments
 (0)