Skip to content

Commit b997257

Browse files
committed
feature: added ci
1 parent 661f2cf commit b997257

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.github/workflows/checks.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: actions
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
7+
jobs:
8+
9+
linter:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: backend
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version:3.7
19+
- run: pipx install "poetry~=2.1.0"
20+
- run: poetry install --with dev
21+
- run: poetry run ruff check --select I .
22+
- run: poetry run ruff check .
23+
24+
typing:
25+
needs: [ linter ]
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
working-directory: backend
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
33+
with:
34+
python-version:3.7
35+
- run: pipx install "poetry~=2.1.0"
36+
- run: poetry install --with dev
37+
- run: poetry run ruff check --select I .
38+
- run: poetry run mypy .
39+
40+
tests:
41+
needs: [ typing, linter ]
42+
runs-on: ubuntu-latest
43+
defaults:
44+
run:
45+
working-directory: backend
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-python@v5
49+
with:
50+
python-version:3.7
51+
- run: pipx install "poetry~=2.1.0"
52+
- run: poetry install --with dev
53+
- run: poetry run ruff check --select I .
54+
- run: poetry run pytest --cov=git_analytics --cov-report=term-missing --cov-fail-under=30

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ poetry run git-analytics
4444

4545
```bash
4646
poetry run pytest
47-
poetry run pytest --cov=git_analytics --cov-report=term-missing
47+
poetry run pytest --cov=git_analytics --cov-report=term-missing --cov-fail-under=30
4848
```
4949

5050
### Type Checking

0 commit comments

Comments
 (0)