Skip to content

Run FastAPI script

Run FastAPI script #35

Workflow file for this run

name: Run FastAPI script
on:
push:
branches: [ main ]
schedule:
- cron: '0 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
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
- name: Run FastAPI
run: |
uvicorn app:app --host 0.0.0.0 --port 8000 &