Skip to content

Commit a250bb5

Browse files
Add GitHub Actions CI workflow
1 parent 81273d9 commit a250bb5

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ 'main', 'dev' ]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Install Dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Run pre-commit hooks
26+
run: |
27+
pip install pre-commit flake8
28+
pre-commit run --all-files
29+
30+
- name: Run Tests
31+
run: |
32+
pytest

0 commit comments

Comments
 (0)