Skip to content

Merge pull request #27 from yale-swe/alex-function-routing #103

Merge pull request #27 from yale-swe/alex-function-routing

Merge pull request #27 from yale-swe/alex-function-routing #103

Workflow file for this run

name: Python application test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ""
MONGO_URI: ""
FLASK_SECRET_KEY: ""
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest flask_testing requests_mock
- name: Run Tests
run: |
cd backend
pytest
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-