Skip to content

Merge pull request #16 from se4ai2324-uniba/Fix #177

Merge pull request #16 from se4ai2324-uniba/Fix

Merge pull request #16 from se4ai2324-uniba/Fix #177

name: FastAPI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
- name: Set up Python
uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -c "import nltk; nltk.download('wordnet')"
python -c "import nltk; nltk.download('omw-1.4')"
- name: Run FastAPI
run: |
uvicorn src.api.server_api:app --reload & sleep 5s
- name: Upload FastAPI Logs
uses: actions/upload-artifact@v2
with:
name: fastapi-logs
path: reports/