Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable scheduled CI tasks #662

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- master
schedule:
- cron: "0 0 * * *"

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion miqa/core/models/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from django_extensions.db.models import TimeStampedModel
from s3_file_field import S3FileField
from s3_file_field.fields import S3FileField

from miqa.core.conversion.nifti_to_zarr_ngff import convert_to_store_path

Expand Down
2 changes: 1 addition & 1 deletion miqa/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _download_from_s3(path: str, public: bool) -> bytes:

@shared_task
def reset_demo():
Project.objects.delete()
Project.objects.all().delete()

demo_project = Project(
name='Demo Project',
Expand Down
4 changes: 2 additions & 2 deletions miqa/learning/evaluation_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from abc import ABC, abstractclassmethod
from abc import ABC, abstractmethod
from pathlib import Path
from typing import List

Expand All @@ -13,7 +13,7 @@ def __init__(self, uri: URI, expected_outputs: List[str]):
self.expected_outputs = expected_outputs
super().__init__()

@abstractclassmethod
@abstractmethod
def load(self):
pass

Expand Down
4 changes: 4 additions & 0 deletions miqa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def before_binding(configuration: ComposedConfiguration) -> None:
'EXCEPTION_HANDLER'
] = 'miqa.core.rest.exceptions.custom_exception_handler'

configuration.MIDDLEWARE += [
'allauth.account.middleware.AccountMiddleware',
]


class DevelopmentConfiguration(MiqaMixin, DevelopmentBaseConfiguration):
HOMEPAGE_REDIRECT_URL = values.Value(environ=True, default='http://localhost:8081')
Expand Down