Added RAG Scripts #45
This file contains 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: Persona LLM Chatbot CI/CD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade pip | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
env: | |
POETRY_HOME: $HOME/.poetry | |
PATH: $HOME/.poetry/bin:$PATH | |
- name: Install project dependencies | |
run: | | |
poetry install | |
working-directory: ${{ github.workspace }} | |
- name: Run tests | |
run: | | |
poetry run pytest -n 4 -v tests/ | |
working-directory: ${{ github.workspace }} |