diff --git a/.github/workflows/_conversational_gen_ai_template__lint_and_test.yaml b/.github/workflows/_conversational_gen_ai_template__lint_and_test.yaml index 627ad8c9ddb..59c187a437c 100644 --- a/.github/workflows/_conversational_gen_ai_template__lint_and_test.yaml +++ b/.github/workflows/_conversational_gen_ai_template__lint_and_test.yaml @@ -3,10 +3,10 @@ name: Conversational Gen AI template - Lint and Test on: push: paths: - - 'gemini/sample-apps/conversational-genai-app-template/**' + - "gemini/sample-apps/conversational-genai-app-template/**" pull_request: paths: - - 'gemini/sample-apps/conversational-genai-app-template/**' + - "gemini/sample-apps/conversational-genai-app-template/**" jobs: lint-and-test: @@ -15,21 +15,21 @@ jobs: run: working-directory: gemini/sample-apps/conversational-genai-app-template steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install Poetry and dependencies - run: | - pip install poetry==1.8.3 --user - python -m poetry install --with lint,streamlit - - name: Lint python code - run: | - poetry run codespell - poetry run ruff . - poetry run mypy . - poetry run black . --check - - name: Run tests - run: | - poetry run pytest tests/unit \ No newline at end of file + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install Poetry and dependencies + run: | + pip install poetry==1.8.3 --user + python -m poetry install --with lint,streamlit + - name: Lint python code + run: | + poetry run codespell + poetry run ruff . + poetry run mypy . + poetry run black . --check + - name: Run tests + run: | + poetry run pytest tests/unit