File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ poetry run git-analytics
4444
4545``` bash
4646poetry 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
You can’t perform that action at this time.
0 commit comments