This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """This module tests the JSON endpoint.""" | |
| import json | |
| def test_json_endpoint(client): | |
| """Tests that the home route returns ok message on GET request. | |
| GIVEN we have the /api/v1/data?username=lyle route | |
| WHEN we send a GET request |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """This module creates the routes for our API.""" | |
| import random | |
| from flask import request | |
| from API import app | |
This file contains hidden or 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
| name: Feature Development Build | |
| on: | |
| push: | |
| branches-ignore: [development, staging, production, release] | |
| workflow_dispatch: | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest |
This file contains hidden or 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
| name: "Development Build" | |
| on: | |
| push: | |
| branches: [ development ] | |
| pull_request: | |
| branches: [ development ] | |
| env: | |
| APP_NAME: shields-io |
This file contains hidden or 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
| web: gunicorn manage:app |
This file contains hidden or 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
| { | |
| "data": "Hello from github oauth json endpoint!" | |
| } |
This file contains hidden or 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
| setuptools==59.6.0 | |
| flask==2.0.3 | |
| requests==2.27.1 | |
| python-dotenv==0.20.0 | |
| gunicorn==20.1.0 |
This file contains hidden or 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
| commitizen==2.24.0 | |
| pre-commit==2.18.1 | |
| pytest==7.1.1 | |
| python-dotenv==0.20.0 | |
| setuptools==60.10.0 |
This file contains hidden or 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
| update-pip: | |
| @pip install --upgrade pip | |
| install: update-pip requirements.txt | |
| @pip install -r requirements.txt | |
| install-dev: requirements-dev.txt | |
| @pip install -r requirements-dev.txt | |
| run: |