mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-20 16:09:54 +00:00
4 files changed
+41
-4
No files matched your search
@@ -18,10 +18,7 @@ runs:
|
||||
version: 1.0 # increment to reset cache
|
||||
|
||||
- name: Install Redis
|
||||
if: ${{ inputs.full == 'true' }}
|
||||
uses: shogo82148/actions-setup-redis@v1
|
||||
with:
|
||||
redis-version: "7.x"
|
||||
|
||||
- name: "Set up Python"
|
||||
uses: actions/setup-python@v6
|
||||
|
||||
@@ -26,6 +26,17 @@ jobs:
|
||||
with:
|
||||
extra_args: --all-files
|
||||
|
||||
migration-check:
|
||||
name: Check missing migrations
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: ./.github/actions/setup_project
|
||||
with:
|
||||
full: false
|
||||
- name: check migrations
|
||||
run: uv run ./manage.py makemigrations --check
|
||||
|
||||
tests:
|
||||
name: Run tests and generate coverage report
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.2.18 on 2026-11-15 11:46
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
import antispam.models.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("core", "0052_preferences_show_my_timetable")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="email",
|
||||
field=antispam.models.fields.AntiSpamEmailField(
|
||||
max_length=254, unique=True, verbose_name="email address"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="second_email",
|
||||
field=antispam.models.fields.AntiSpamEmailField(
|
||||
blank=True,
|
||||
max_length=254,
|
||||
null=True,
|
||||
verbose_name="second email address",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -104,7 +104,7 @@ class Migration(migrations.Migration):
|
||||
"week_group",
|
||||
models.CharField(
|
||||
blank=True,
|
||||
choices=[("A", "A"), ("B", "B")],
|
||||
choices=[("A", "A"), ("B", "B"), ("", "Both")],
|
||||
default="",
|
||||
max_length=1,
|
||||
verbose_name="week group",
|
||||
|
||||
Reference in new issue
Block a user