Skip to content

Commit

Permalink
Merge pull request #2 from engeldevelopment/crear-pipeline-ci
Browse files Browse the repository at this point in the history
Configuración del pipeline ci
  • Loading branch information
engeldevelopment authored Aug 10, 2020
2 parents af05872 + a7e5a53 commit 89b25e0
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 0 deletions.
Binary file modified .coverage
Binary file not shown.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Integración continua

on:
push:
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'

jobs:
tests:
name: Pruebas y Calidad del Código
runs-on: ubuntu-18.04
container:
image: python:3.7
env:
DJANGO_SETTINGS_MODULE: config.settings.ci
steps:
- uses: actions/checkout@v2

- name: Instalandon dependencias
run: pip install -r requirements/ci.txt

- name: Corriendo pruebas y obteniendo el coverage
run: make coverage

- name: Pasando el linter a mi código
run: make lint
2 changes: 2 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def root(*dirs):
'django.contrib.staticfiles',
'rest_framework',
'corsheaders',

'marvel.core',
]

MIDDLEWARE = [
Expand Down
Empty file added marvel/core/__init__.py
Empty file.
Empty file added marvel/core/admin.py
Empty file.
5 changes: 5 additions & 0 deletions marvel/core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
name = 'core'
Empty file.
Empty file added marvel/core/models.py
Empty file.
Empty file added marvel/core/tests/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions marvel/core/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.test import TestCase


class CharacterTest(TestCase):

def test_value_to_true(self):
self.assertTrue(True)
Empty file added marvel/core/views.py
Empty file.

0 comments on commit 89b25e0

Please sign in to comment.