mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com> Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local> Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com> Co-authored-by: Mohamed Ashraf <mohamedashrraf222@gmail.com> Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Mypy Type Checking for Aiservice
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "django/aiservice/**"
|
|
defaults:
|
|
run:
|
|
working-directory: ./django/aiservice
|
|
|
|
jobs:
|
|
type-check-aiservice:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
|
|
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
|
|
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: ensure pip is available for mypy
|
|
run: uv venv --seed
|
|
- name: Install project dependencies
|
|
run: uv sync
|
|
|
|
- name: Run mypy on allowlist
|
|
run: uv run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
|