Skip to content

Automate browser based workflows with AI

make alembic check pre-commit manual (#2410)

Shuchang Zhengd0d07c3985a5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1f8f650e7..66b16be5f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,7 +92,8 @@ jobs:
- run: poetry install --no-interaction
# Finally, run pre-commit.
- - uses: pre-commit/[email protected]
+ - name: Run all pre-commit hooks
+ uses: pre-commit/[email protected]
env:
ENABLE_OPENAI: "true"
OPENAI_API_KEY: "sk-dummy"
@@ -103,7 +104,22 @@ jobs:
AZURE_GPT4O_MINI_API_VERSION: "dummy"
AWS_REGION: "us-east-1"
ENABLE_BEDROCK: "true"
-
+
+ - name: Run the alembic-check pre-commit hook
+ uses: pre-commit/[email protected]
+ env:
+ ENABLE_OPENAI: "true"
+ OPENAI_API_KEY: "sk-dummy"
+ ENABLE_AZURE_GPT4O_MINI: "true"
+ AZURE_GPT4O_MINI_DEPLOYMENT: "dummy"
+ AZURE_GPT4O_MINI_API_KEY: "dummy"
+ AZURE_GPT4O_MINI_API_BASE: "dummy"
+ AZURE_GPT4O_MINI_API_VERSION: "dummy"
+ AWS_REGION: "us-east-1"
+ ENABLE_BEDROCK: "true"
+ with:
+ args: "run --hook-stage manual alembic-check"
+
fe-lint-build:
runs-on: ubuntu-latest
defaults:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4ef7a9be9..31749d3b1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -101,4 +101,4 @@ repos:
name: Alembic Check
entry: ./run_alembic_check.sh
language: script
- stages: [ pre-commit ]
+ stages: [ manual ]