-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from elixir-luxembourg/develop
develop to master (1.6.0)
- Loading branch information
Showing
96 changed files
with
2,392 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Execute the tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- use-github-actions | ||
- master | ||
- develop | ||
- dependabot/** | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
tests: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare DAISY settings for CI | ||
run: cp elixir_daisy/settings_compose_ci.py elixir_daisy/settings_compose.py | ||
|
||
- name: Build and start containers | ||
run: docker-compose up -d --build | ||
|
||
- name: Execute the tests | ||
run: docker-compose exec -T web python setup.py pytest | ||
|
||
- name: Stop containers | ||
if: always() | ||
run: docker-compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
from django.apps import AppConfig | ||
from django.conf import settings | ||
import os | ||
import json | ||
from django.core.exceptions import ImproperlyConfigured | ||
|
||
|
||
class CoreConfig(AppConfig): | ||
name = 'core' | ||
|
||
def ready(self): | ||
import core.models.signals | ||
import core.models.signals | ||
|
||
# Prevent use of conflicting versions of import JSON schemas | ||
json_schema_uri = getattr(settings,'IMPORT_JSON_SCHEMAS_URI') | ||
json_schema_dir = getattr(settings,'IMPORT_JSON_SCHEMAS_DIR') | ||
for file in os.listdir(json_schema_dir): | ||
with open(os.path.join(json_schema_dir, file), 'r', encoding='utf-8') as schema_file: | ||
schema = json.loads(schema_file.read()) | ||
local_schema_uri_basename = os.path.dirname(schema['$id']) | ||
settings_schema_uri_basename = os.path.dirname(json_schema_uri) | ||
if local_schema_uri_basename != settings_schema_uri_basename: | ||
raise ImproperlyConfigured('Version of import JSON schema is not matching version set in settings.py.\n' | ||
f'{file} property $id: {local_schema_uri_basename}\n' | ||
f'settings.py schema URI: {settings_schema_uri_basename}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
[ | ||
{ | ||
"name": "Other" | ||
}, | ||
|
||
{ | ||
"name": "Contract/Agreement" | ||
}, | ||
{ | ||
"name": "Consent Form Template" | ||
}, | ||
{ | ||
"name": "CNER Approval" | ||
}, | ||
{ | ||
"name": "CNPD Authorisation" | ||
}, | ||
{ | ||
"name": "CNPD Notification" | ||
}, | ||
{ | ||
"name": "ERP Approval" | ||
}, | ||
{ | ||
"name": "Subject Information Sheet Template" | ||
} | ||
] | ||
[{ | ||
"name": "Other" | ||
}, | ||
|
||
{ | ||
"name": "Data Protection Impact Assessment" | ||
}, | ||
|
||
{ | ||
"name": "Contract/Agreement" | ||
}, | ||
{ | ||
"name": "Consent Form Template" | ||
}, | ||
{ | ||
"name": "CNER Approval" | ||
}, | ||
{ | ||
"name": "CNPD Authorisation" | ||
}, | ||
{ | ||
"name": "CNPD Notification" | ||
}, | ||
|
||
|
||
{ | ||
"name": "ERP Approval" | ||
}, | ||
{ | ||
"name": "Subject Information Sheet Template" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.