Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""This module contains the routes associated with the default Blueprint."""
from flask import Blueprint, jsonify
default = Blueprint('default', __name__, template_folder='templates', static_folder='static')
@default.route('/')
def default_route():
"""Confirm that the application is working."""
# -*- coding: utf-8 -*-
"""This module contains initialization code for the api package."""
from flask import Flask
from .blueprints.default.views import default
app = Flask(__name__)
app.register_blueprint(default)
name: "Development Build"
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
env:
APP_NAME: heroku-container
name: Feature Development Build
on:
push:
branches-ignore: [development, staging, production, release]
workflow_dispatch:
jobs:
Build:
name: Releases
on:
push:
tags:
- '*'
jobs:
build:
web: gunicorn manage:app
name: "Staging Build"
on:
push:
branches: [ staging ]
pull_request:
branches: [ staging ]
env:
APP_NAME: staging-oauth
name: "Development Build"
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
Build:
name: Feature Development Build
on:
push:
branches-ignore: [development, staging, production, release]
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
name: A job to test the oryks code coverage action
steps: