chore: initial project - Concat of Webapp & Core #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: Core Quality | |
on: | |
push: | |
pull_request: | |
workflow_call: | |
secrets: | |
OPENAI_API_KEY: | |
required: true | |
ANTHROPIC_API_KEY: | |
required: true | |
SERPER_API_KEY: | |
required: true | |
jobs: | |
build: | |
name: Quality | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: core | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Run Flake8 | |
run: | | |
poetry run flake8 ai_assistant_core tests | |
- name: Run tests | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }} | |
run: | | |
poetry run pytest |