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

WIP test reusable workflow #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
common:
uses: tuomas777/.github/.github/workflows/ci-django-api.yml@reusable_workflow_precommit
secrets: inherit
with:
python-version: 3.9
postgres-major-version: 14
use-postgis: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ config_dev.toml
protected_media/
media/
.vscode
.python-version
.python-version
1 change: 0 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ source_file = democracy/locale/django.pot
source_lang = en
trans.fi = democracy/locale/fi/LC_MESSAGES/django.po
type = PO

3 changes: 1 addition & 2 deletions api_urls_draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Language used as GET parameter anywhere
- send #26

## /account

- register #9
- update user info #11

Expand Down Expand Up @@ -152,4 +152,3 @@ List labels. Get detail. Create, update.

- **list** _/api/v1/labels/?hearing=[hearingID]_
- **CRUD** #23 _/api/v1/labels/[labelID]_

4 changes: 2 additions & 2 deletions democracy/locale/fi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translations template for PROJECT.
# Copyright (C) 2016 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
#
#
# Translators:
# Aarni Koskela, 2015-2016
# Tuomas Haapala <[email protected]>, 2016
Expand Down Expand Up @@ -254,4 +254,4 @@ msgid "multiple-choice"
msgstr "monivalintakysymys"

msgid "total answers"
msgstr "vastauksia yhteensä"
msgstr "vastauksia yhteensä"
2 changes: 1 addition & 1 deletion democracy/static/admin/select2/select2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deploy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ elif [[ "$DEV_SERVER" = "true" ]]; then
exec python -Wd ./manage.py runserver 0.0.0.0:8000
else
echo "Starting production server"
exec uwsgi -y deploy/uwsgi.yml
exec uwsgi -ini deploy/uwsgi.ini
fi
22 changes: 22 additions & 0 deletions deploy/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[uwsgi]
# Needed plugins if running against Debian uwsgi-package
# python docker image cannot use that due to linker mishaps
wsgi-file = kerrokantasi/wsgi.py
processes = 3
#threads = 1
master = true
umask = 022
reload-on-rss = 300

# Allow large image uploads
#chunked-input-limit = 10485760
buffer-size = 32768

http = :8000
static-map = /static=/srv/static
static-map = /media=/srv/media

# Ignore write errors
ignore-sigpipe = true
ignore-write-errors = true
disable-write-exception = true
22 changes: 0 additions & 22 deletions deploy/uwsgi.yml

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/wait-for-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then
exec "${WAITFORIT_CLI[@]}"
else
exit $WAITFORIT_RESULT
fi
fi
14 changes: 7 additions & 7 deletions docs/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
### Breakdown:

#### Kategoria-otsikko
1. Tiedosto
1. Tiedosto
* Selitys muutoksista

2. Tiedosto
* Selitys muutoksista

3. Tiedosto
* Selitys muutoksista

#### Kategoria-otsikko
1. Tiedosto
1. Tiedosto
* Selitys muutoksista

2. Tiedosto
* Selitys muutoksista

3. Tiedosto
* Selitys muutoksista