Skip to content

Commit 81772fa

Browse files
committed
feat: Добавил CI и зависимости
1 parent afe6f8b commit 81772fa

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint
2+
on: push
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
11+
- name: Set up Python
12+
uses: actions/setup-python@v6
13+
with:
14+
python-version: '3.12'
15+
16+
- name: Cache dependencies
17+
uses: actions/cache@v3
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements_ci.txt') }}
21+
22+
- name: Install dependencies
23+
run: pip install -r requirements_ci.txt
24+
25+
- name: Run flake8
26+
run: flake8 src/ tests/ --verbose
27+
28+
- name: Run black
29+
run: black src/ tests/ --check
30+
31+
- name: Run isort
32+
run: isort src/ tests/ --check-only

requirements_ci.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
black
2+
flake8
3+
pep8-naming

0 commit comments

Comments
 (0)