Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasecchig committed Sep 18, 2024
1 parent 41c7327 commit 13bb6be
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
- 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

0 comments on commit 13bb6be

Please sign in to comment.