Skip to content

Commit d881e11

Browse files
author
Neo
committed
add: GitHub Actions CI
1 parent 6d4f8d7 commit d881e11

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
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+
pip install flake8
25+
26+
- name: Lint with flake8
27+
run: |
28+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.venv,migrations
29+
30+
- name: Check imports
31+
run: |
32+
python -c "import gateway; print('gateway OK')" || true
33+
python -c "import runtime; print('runtime OK')" || true

0 commit comments

Comments
 (0)