Skip to content

Commit a81f7cc

Browse files
committed
first commit
0 parents  commit a81f7cc

File tree

201 files changed

+9418
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+9418
-0
lines changed

.github/workflows/django.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Python application
2+
3+
on: [push]
4+
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-latest
10+
11+
services:
12+
postgres:
13+
image: postgres:14.9
14+
env:
15+
POSTGRES_USER: decide
16+
POSTGRES_PASSWORD: decide
17+
POSTGRES_DB: decide
18+
ports:
19+
- 5432:5432
20+
# needed because the postgres container does not provide a healthcheck
21+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python 3.10.12
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: 3.10.12
29+
- name: psycopg2 prerequisites
30+
run: sudo apt-get install libpq-dev
31+
- name: Install dependencies and config
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install -r requirements.txt
35+
pip install codacy-coverage
36+
cp decide/local_settings.gactions.py decide/local_settings.py
37+
- name: Run migrations (unnecessary)
38+
run: |
39+
cd decide
40+
python manage.py migrate
41+
- name: Run tests
42+
run: |
43+
cd decide
44+
coverage run --branch --source=. ./manage.py test --keepdb
45+
coverage xml
46+
- name: Codacy Coverage Reporter
47+
uses: codacy/codacy-coverage-reporter-action@v1
48+
with:
49+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
50+
coverage-reports: decide/coverage.xml

.gitignore

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
.vagrant
104+
105+
.DS_Store

.gitmessage.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
tipo: asunto #id
2+
3+
cuerpo
4+
5+
### tipo
6+
# feat (nueva funcionalidad)
7+
# fix (corrección de bugs)
8+
# research (incorporación de código experimental, puede ser no funcional)
9+
# refactor (refactorización de código)
10+
# docs (actualización de documentación)
11+
# test (incorporación o modificación de tests)
12+
# conf (modificación de archivos de configuración)
13+
14+
### asunto
15+
# Consiste en una breve descripción del problema que se ha tratado y que debe de comenzar con un verbo en participio.
16+
# Se referenciará la issue correspondiente (en caso de existir) tal que: `#<ID_issue>`
17+
18+
### cuerpo (opcional)
19+
# Se utilizará en caso de que el asunto no sea suficientemente descriptivo.
20+
21+
### Ejemplo
22+
# conf : Actualizado docker-compose.yml #1

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
dist: xenial
2+
3+
services:
4+
- postgresql
5+
addons:
6+
postgresql: "9.4"
7+
before_script:
8+
- psql -U postgres -c "create user decide password 'decide'"
9+
- psql -U postgres -c "create database test_decide owner decide"
10+
- psql -U postgres -c "ALTER USER decide CREATEDB"
11+
language: python
12+
python:
13+
- "3.6"
14+
install:
15+
- pip install -r requirements.txt
16+
- pip install codacy-coverage
17+
script:
18+
- cd decide
19+
- coverage run --branch --source=. ./manage.py test --keepdb --with-xunit
20+
- coverage xml
21+
- python-codacy-coverage -r coverage.xml

0 commit comments

Comments
 (0)