Skip to content

Commit bd19f72

Browse files
committed
Revert "Merge branch 'main' into games_develop"
This reverts commit f4a788f, reversing changes made to 271253b.
1 parent f4a788f commit bd19f72

332 files changed

Lines changed: 6152 additions & 4398 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[run]
2+
source = videodef
3+
branch = True
4+
omit =
5+
*/tests/*
6+
*/migrations/*
7+
*/admin.py
8+
*/apps.py
9+
*/wsgi.py
10+
*/asgi.py
11+
*/manage.py
12+
13+
[report]
14+
omit =
15+
*/tests/*
16+
*/migrations/*
17+
*/admin.py
18+
*/apps.py
19+
*/wsgi.py
20+
*/asgi.py
21+
*/manage.py
22+
23+
exclude_lines =
24+
pragma: no cover
25+
if __name__ == .__main__.:
26+
if settings.DEBUG:
27+
28+
[html]
29+
directory = coverage_html_report
30+
title = "Видео дефектолог ру" - покрытие тестами
31+
32+
[xml]
33+
output = coverage.xml

.github/workflows/tests.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Django Tests with Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**/*.md"
9+
10+
pull_request:
11+
paths-ignore:
12+
- "**/*.md"
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
18+
services:
19+
postgres:
20+
image: postgres:13
21+
env:
22+
POSTGRES_USER: postgres
23+
POSTGRES_PASSWORD: postgres
24+
POSTGRES_DB: test_db
25+
ports: ["5432:5432"]
26+
options: >-
27+
--health-cmd pg_isready
28+
--health-interval 10s
29+
--health-timeout 5s
30+
--health-retries 5
31+
32+
env:
33+
DJANGO_SECRET_KEY: test_secret
34+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
35+
DB_NAME: test_db
36+
DB_USER: postgres
37+
DB_PASSWORD: postgres
38+
DB_HOST: localhost
39+
DB_PORT: 5432
40+
41+
steps:
42+
- uses: actions/checkout@v3
43+
44+
- name: Set up Python
45+
uses: actions/setup-python@v4
46+
with:
47+
python-version: "3.11"
48+
49+
- name: Install dependencies
50+
run: |
51+
python -m pip install --upgrade pip
52+
pip install -r requirements.txt
53+
54+
- name: Run coverage
55+
working-directory: videodef
56+
env:
57+
DJANGO_SETTINGS_MODULE: main.settings
58+
PYTHONPATH: .
59+
run: |
60+
python manage.py migrate
61+
coverage run manage.py test
62+
coverage report
63+
coverage xml
64+
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v4
67+
with:
68+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
avatars/
2+
child_images/
3+
resume_images/
4+
document_images/
5+
puzzle_images/
6+
17
# Byte-compiled / optimized / DLL files
28
__pycache__/
39
*.py[cod]

codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
status:
3+
patch:
4+
target: 80%
5+
threshold: 20%

for_readme/about_screenshot.JPG

194 KB

for_readme/bpmn.png

123 KB

for_readme/bpmn_games.png

91.6 KB

for_readme/chat_screenshot.JPG

94.7 KB

for_readme/child_screenshot.JPG

77.1 KB

for_readme/database_schema.png

649 KB

0 commit comments

Comments
 (0)