Skip to content

Commit f676c7e

Browse files
Merge pull request #579 from DashAISoftware/develop
DashAI 0.9.0
2 parents 8479230 + 337d155 commit f676c7e

1,005 files changed

Lines changed: 96377 additions & 28688 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.git/
2+
__pycache__/
3+
*.pyc
4+
*.pyo
5+
build/
6+
dist/
7+
node_modules/
8+
DashAI/front/.pnp.cjs
9+
DashAI/front/.pnp.loader.mjs
10+
DashAI/front/node_modules/
11+
DashAI/front/build/

.github/workflows/code-review.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Code Review
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
id-token: write
11+
12+
jobs:
13+
review:
14+
if: github.event.issue.pull_request && contains(github.event.comment.body, '/review')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: refs/pull/${{ github.event.issue.number }}/head
20+
fetch-depth: 0
21+
- uses: anthropics/claude-code-action@v1
22+
with:
23+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
prompt: |
26+
REPO: ${{ github.repository }}
27+
PR NUMBER: ${{ github.event.issue.number }}
28+
29+
You are reviewing this pull request. Follow these steps:
30+
1. Run `gh pr view ${{ github.event.issue.number }} --json title,body,files` to understand the PR.
31+
2. Run `gh pr diff ${{ github.event.issue.number }}` to see the full diff.
32+
3. Read the key changed files to understand context.
33+
4. Analyze for bugs, security issues, correctness problems, and code quality concerns.
34+
5. Post your findings as inline review comments using the GitHub review tools available to you. If inline comments are not possible, post a consolidated review as a PR comment using `gh pr comment ${{ github.event.issue.number }} --body "..."`.
35+
36+
Focus on actionable feedback. Skip nitpicks and style issues already enforced by linters.
37+
claude_args: "--max-turns 30 --model claude-sonnet-4-6 --allowedTools Bash,Read,Glob,Grep"
38+
include_fix_links: true
39+
classify_inline_comments: false
40+
show_full_output: true
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: DB Migrations
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
alembic-migrations:
12+
strategy:
13+
matrix:
14+
python-version: ["3.10"]
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
run: |
29+
pip install --upgrade --upgrade-strategy eager -r requirements.txt
30+
pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt
31+
32+
- name: Set DB env vars
33+
run: |
34+
echo "DB_FILE=$RUNNER_TEMP/dashai-ci.sqlite3" >> "$GITHUB_ENV"
35+
echo "DATABASE_URL=sqlite:///$RUNNER_TEMP/dashai-ci.sqlite3" >> "$GITHUB_ENV"
36+
echo "Temp dir: $RUNNER_TEMP"
37+
38+
- name: Show Alembic info
39+
run: |
40+
alembic --version
41+
echo "DB will be at: $DATABASE_URL"
42+
43+
- name: Prepare temp dir
44+
run: |
45+
mkdir -p "$(dirname "$DB_FILE")"
46+
rm -f "$DB_FILE"
47+
48+
# upgrade to head
49+
- name: Upgrade to head
50+
run: |
51+
alembic -x url="$DATABASE_URL" upgrade head
52+
53+
# Checks downgrade and upgrade again (reversibility)
54+
- name: Downgrade to base and upgrade again (reversibility check)
55+
run: |
56+
alembic -x url="$DATABASE_URL" downgrade base
57+
alembic -x url="$DATABASE_URL" upgrade head
58+
59+
- name: Check for pending autogenerate (python-based)
60+
env:
61+
PYTHONPATH: "${PYTHONPATH}:."
62+
run: python -m scripts.ci_alembic_check

.github/workflows/docs.yaml

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Docs
22
on:
33
push:
4-
branches:
5-
- production
6-
- develop
4+
branches: [production, develop]
75

86
permissions:
97
contents: read
@@ -22,8 +20,7 @@ jobs:
2220
url: ${{ steps.deployment.outputs.page_url }}
2321

2422
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v3
23+
- uses: actions/checkout@v3
2724

2825
- name: Set up Python
2926
uses: actions/setup-python@v4
@@ -33,36 +30,32 @@ jobs:
3330
cache-dependency-path: |
3431
requirements.txt
3532
requirements-dev.txt
36-
docs/requirements.txt
3733
38-
- name: Install system build tools (gcc, g++, cmake, ninja)
39-
run: |
40-
sudo apt-get update
41-
sudo apt-get install -y build-essential cmake ninja-build
34+
- name: Install DashAI (needed for component introspection)
35+
run: pip install -e .
4236

43-
- name: Build docs
44-
env:
45-
CC: gcc
46-
CXX: g++
47-
PIP_DISABLE_PIP_VERSION_CHECK: "1"
48-
run: |
49-
python -m pip install -U pip setuptools wheel scikit-build-core
50-
# Dependencias SOLO de docs
51-
pip install -r docs/requirements.txt
52-
# Instalación normal del proyecto (con todas las deps)
53-
pip install -e .
54-
# (opcional) limpia stubs viejos por si quedaron versionados
55-
rm -rf docs/source/api/generated || true
56-
# Construir HTML directamente (sin action)
57-
sphinx-build -b html docs/source docs/build/html
37+
- name: Set up Node.js
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: "20"
41+
cache: "yarn"
42+
cache-dependency-path: docs/yarn.lock
43+
44+
- name: Install Docusaurus dependencies
45+
run: yarn install --frozen-lockfile
46+
working-directory: docs
47+
48+
- name: Build docs (generates components + Docusaurus build)
49+
run: yarn build
50+
working-directory: docs
5851

5952
- name: Setup Pages
6053
uses: actions/configure-pages@v2
6154

6255
- name: Upload artifact
6356
uses: actions/upload-pages-artifact@v3
6457
with:
65-
path: "docs/build/html"
58+
path: "docs/build"
6659
retention-days: 1
6760

6861
- name: Deploy to GitHub Pages

.github/workflows/pre-commit.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
name: Pre-commit checks
2-
on:
3-
push
2+
on: push
43
jobs:
54
pre-commit:
65
runs-on: ubuntu-latest
76
steps:
8-
- name: 'Check out repository code'
7+
- name: "Check out repository code"
98
uses: actions/checkout@v3
109

1110
- name: Use Node.js
1211
uses: actions/setup-node@v3
1312
with:
14-
node-version: '18.x'
15-
cache: 'yarn'
13+
node-version: "18.x"
14+
cache: "yarn"
1615
cache-dependency-path: DashAI/front/yarn.lock
1716

1817
- name: Install frontend deps
1918
working-directory: DashAI/front
2019
run: yarn install --frozen-lockfile
2120

22-
- name: Setup latest Python 3.x
23-
uses: actions/setup-python@v3
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
2425

2526
- name: Install pre-commit
2627
run: |

0 commit comments

Comments
 (0)