Skip to content

Commit 2a4b23d

Browse files
committed
ci: add GitHub Actions workflows for testing, linting, and automated sync
1 parent e90ced3 commit 2a4b23d

2 files changed

Lines changed: 83 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Code Quality
2+
3+
on:
4+
5+
push:
6+
7+
branches:
8+
- main
9+
10+
pull_request:
11+
12+
branches:
13+
- main
14+
15+
jobs:
16+
17+
lint:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-python@v5
26+
27+
with:
28+
python-version: "3.13"
29+
30+
- name: Install
31+
32+
run: |
33+
34+
python -m pip install --upgrade pip
35+
36+
pip install black flake8 isort
37+
38+
- name: Check formatting
39+
40+
run: |
41+
42+
black --check .
43+
44+
isort --check-only .
45+
46+
flake8 .

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
25+
with:
26+
python-version: "3.13"
27+
28+
- name: Install dependencies
29+
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -r requirements.txt
33+
34+
- name: Run tests
35+
36+
run: |
37+
pytest tests -v

0 commit comments

Comments
 (0)