Skip to content

feat: enhance msfconsole documentation with detailed features, comman… #348

feat: enhance msfconsole documentation with detailed features, comman…

feat: enhance msfconsole documentation with detailed features, comman… #348

Workflow file for this run

name: "Wish: Python Lint & Test"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint ${{ matrix.project }}
runs-on: ubuntu-latest
strategy:
matrix:
project:
- wish-sh
- wish-knowledge-loader
- wish-command-execution
- wish-command-generation
- wish-command-generation-api
- wish-log-analysis
- wish-log-analysis-api
- wish-models
- wish-tools
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "${{ matrix.project }}/.python-version"
- name: Install the project
run: cd ${{ matrix.project }} ; uv sync --all-extras --dev
- name: Run lint
run: cd ${{ matrix.project }} ; uv run ruff check
test:
name: Test ${{ matrix.project }}
runs-on: ubuntu-latest
strategy:
matrix:
project:
- wish-sh
- wish-knowledge-loader
- wish-command-execution
- wish-command-generation
- wish-command-generation-api
- wish-log-analysis
- wish-log-analysis-api
- wish-models
- wish-tools
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "${{ matrix.project }}/.python-version"
- name: Install the project
run: cd ${{ matrix.project }} ; uv sync --all-extras --dev
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}
OPENAI_MODEL: "gpt-4o"
OPENAI_EMBEDDING_MODEL: "text-embedding-3-small"
VECTOR_STORE_TYPE: "chroma"
EMBEDDING_MODEL: "text-embedding-3-small"
LANGCHAIN_TRACING_V2: "true"
LANGCHAIN_ENDPOINT: "https://api.smith.langchain.com"
LANGCHAIN_PROJECT: "wish-ci"
WISH_HOME: "/home/runner/.wish"
WISH_API_BASE_URL: "http://localhost:3000"
run: cd ${{ matrix.project }} ; uv run pytest