ci: add PR quality and coverage gates

This commit is contained in:
2026-08-09 00:10:24 +08:00
parent e50ac83988
commit 2f90c82d54
34 changed files with 47 additions and 34 deletions
@@ -2,7 +2,6 @@ from django.core.management.base import BaseCommand
from contest.models import Contest, ContestQuestion, Question, QuestionVersion
QUESTIONS = {
Question.Track.BEGINNER: [
("b-12-plus-19", "12 + 19", "31"),
-1
View File
@@ -2,7 +2,6 @@ from django.urls import path
from .consumers import MatchConsumer
websocket_urlpatterns = [
path("ws/v1/contest/matches/<uuid:match_id>/", MatchConsumer.as_asgi()),
]
+1
View File
@@ -6,6 +6,7 @@ from django.utils import timezone
from rest_framework.exceptions import ValidationError
from accounts.models import User
from .models import (
CheatFlag,
Contest,
-1
View File
@@ -1,3 +1,2 @@
from django.test import TestCase
# Create your tests here.
-1
View File
@@ -9,7 +9,6 @@ from .views import (
MatchStateView,
)
urlpatterns = [
path("", ContestListView.as_view(), name="contest-list"),
path("<slug:slug>/start/", AttemptStartView.as_view(), name="attempt-start"),