-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: strip chr prefix for grch38 (#10)
- Adapted docker build and github actions - Performed isort - Update to Django 3.2 and Python 3.10
- Loading branch information
Showing
30 changed files
with
315 additions
and
148 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
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,52 @@ | ||
# This workflow is run as part of CI to test that they run through. | ||
# | ||
# The images are pushed to `ghcr.io` for each PR and branch. The ones for | ||
# the releases are pushed in `release-please.yml`. | ||
name: Docker Build | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Write VERSION file for Python package | ||
run: | | ||
git describe --all | tee VERSION | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: utils/docker/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,19 @@ | ||
name: Cleanup PR Images | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
purge-image: | ||
name: Delete PR images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bots-house/ghcr-delete-image-action@v1.1.0 | ||
with: | ||
owner: varfish-org | ||
name: cadd-rest-api | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: pr-${{github.event.pull_request.number}} | ||
continue-on-error: true |
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,18 @@ | ||
name: Cleanup Untagged Images | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * SUN" | ||
|
||
jobs: | ||
delete-untagged-images: | ||
name: Delete untagged images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bots-house/ghcr-delete-image-action@v1.1.0 | ||
with: | ||
owner: varfish-org | ||
name: cadd-rest-api | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
untagged-keep-latest: 3 |
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,3 +1,5 @@ | ||
/VERSION | ||
|
||
# SQLite database. | ||
/*.db | ||
|
||
|
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,23 +1,35 @@ | ||
SHELL = /bin/bash | ||
MANAGE = time python manage.py | ||
|
||
.PHONY: black serve _migrate migrate celery | ||
|
||
.PHONY: black | ||
black: | ||
black -l 100 --exclude '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.?v?env|_build|buck-out|build|dist|src)/' . | ||
|
||
.PHONY: isort | ||
isort: | ||
isort --force-sort-within-sections --profile=black . | ||
|
||
.PHONY: flake8 | ||
flake8: | ||
flake8 | ||
|
||
.PHONY: serve | ||
serve: | ||
$(MANAGE) runserver | ||
|
||
.PHONY: _migrate | ||
_migrate: | ||
$(MANAGE) makemigrations | ||
$(MANAGE) migrate | ||
|
||
.PHONY: migrate | ||
migrate: _migrate black | ||
|
||
.PHONY: celery | ||
celery: | ||
celery worker -A config.celery_app -l info --concurrency=4 | ||
|
||
.PHONY: test | ||
test: | ||
$(MANAGE) test --settings=config.settings.test -v2 | ||
|
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,4 +1,5 @@ | ||
import os | ||
|
||
from celery import Celery | ||
|
||
# set the default Django settings module for the 'celery' program. | ||
|
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
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
framework. | ||
""" | ||
|
||
import os | ||
import sys | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,26 +1,27 @@ | ||
pytz==2019.2 # https://github.com/stub42/pytz | ||
python-slugify==3.0.3 # https://github.com/un33k/python-slugify | ||
Pillow==6.1.0 # https://github.com/python-pillow/Pillow | ||
argon2-cffi==19.1.0 # https://github.com/hynek/argon2_cffi | ||
redis==3.3.8 # https://github.com/antirez/redis | ||
celery==4.3.1 # pyup: < 5.0 # https://github.com/celery/celery | ||
django-celery-beat==1.5.0 # https://github.com/celery/django-celery-beat | ||
pytz | ||
python-slugify | ||
Pillow | ||
argon2-cffi | ||
redis | ||
celery | ||
|
||
Werkzeug==0.14.1 # pyup: < 0.15 # https://github.com/pallets/werkzeug | ||
Sphinx==2.2.0 # https://github.com/sphinx-doc/sphinx | ||
Werkzeug | ||
Sphinx | ||
|
||
# Django | ||
# ------------------------------------------------------------------------------ | ||
django<2.0 # pyup: < 3.0 # https://www.djangoproject.com/ | ||
django-environ==0.4.5 # https://github.com/joke2k/django-environ | ||
django-model-utils==3.2.0 # https://github.com/jazzband/django-model-utils | ||
django-allauth==0.40.0 # https://github.com/pennersr/django-allauth | ||
django-crispy-forms==1.7.2 # https://github.com/django-crispy-forms/django-crispy-forms | ||
django-redis==4.10.0 # https://github.com/niwinz/django-redis | ||
django-debug-toolbar==2.0 # https://github.com/jazzband/django-debug-toolbar | ||
#django==3.2 | ||
django<4 | ||
django-environ | ||
django-model-utils | ||
django-allauth | ||
django-crispy-forms | ||
django-redis | ||
django-debug-toolbar | ||
|
||
# Django REST Framework | ||
djangorestframework==3.10.3 # https://github.com/encode/django-rest-framework | ||
coreapi==2.3.3 # https://github.com/core-api/python-client | ||
djangorestframework | ||
coreapi | ||
|
||
jsonfield==2.1.1 | ||
jsonfield | ||
ipdb |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.