Integrate Chat message endpoint with Langchain implementation #121
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: MVP CI/CD - Fast & Simple | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| jobs: | |
| # Quick build and basic tests only | |
| frontend: | |
| name: Frontend Quick Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm install | |
| - name: Build check | |
| working-directory: ./frontend | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_BACKEND_URL: http://localhost:8000 | |
| backend: | |
| name: Backend Quick Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| cache-dependency-path: backend/requirements-dev.txt | |
| - name: Install dependencies | |
| working-directory: ./backend | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Basic tests (no coverage requirements) | |
| working-directory: ./backend | |
| run: pytest --tb=short | |
| env: | |
| TESTING: true | |
| DATABASE_URL: sqlite:///test.db | |
| OPENAI_API_KEY: test-key |