Merge branch 'main' into inardini--batch-pipeline-rag #1
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: End-to-end Gen AI starter kit - Unit test | |
on: | |
push: | |
paths: | |
- "gemini/sample-apps/e2e-gen-ai-app-starter-pack/**" | |
pull_request: | |
paths: | |
- "gemini/sample-apps/e2e-gen-ai-app-starter-pack/**" | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: gemini/sample-apps/e2e-gen-ai-app-starter-pack | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry and dependencies | |
run: | | |
pip install poetry==1.8.3 --user | |
python -m poetry install | |
- name: Run tests | |
run: | | |
poetry run pytest tests/unit |