feat(web): add canvas selection tools #18
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| static: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Static contract checks | |
| run: python scripts/static_check.py | |
| app-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install runtime dependencies | |
| run: python -m pip install -r requirements.txt | |
| - name: Smoke tests | |
| env: | |
| DAP_APP_ENV: test | |
| DAP_DEMO_MODE: "true" | |
| DAP_HF_SPACE: "true" | |
| DAP_SECRET_KEY: ci-secret-not-for-production | |
| DAP_OPS_TOKEN: ci-ops-token | |
| DAP_DATA_DIR: ${{ runner.temp }}/dap-data | |
| run: | | |
| python scripts/reset_db.py | |
| python scripts/smoke_test.py | |
| python scripts/security_smoke_test.py | |
| python scripts/full_agent_smoke_test.py | |
| python scripts/codex_runtime_smoke_test.py | |
| python scripts/hf_mode_regression_test.py | |
| python scripts/standalone_regression_test.py | |
| python scripts/hardening_regression_test.py | |
| docker-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build Docker image | |
| run: docker build --build-arg PYTHON_BASE_IMAGE=python:3.11-slim -t data-agent-panel:test . | |
| - name: Run container | |
| run: | | |
| docker run -d --name data-agent-panel -p 7860:7860 \ | |
| -e DAP_SECRET_KEY=ci-secret-not-for-production \ | |
| -e DAP_OPS_TOKEN=ci-ops-token \ | |
| data-agent-panel:test | |
| - name: Remote-style smoke | |
| env: | |
| OPS_TOKEN: ci-ops-token | |
| SMOKE_RETRIES: "60" | |
| SMOKE_DELAY: "2" | |
| run: bash scripts/hf_space_smoke.sh http://127.0.0.1:7860 | |
| - name: Container logs | |
| if: failure() | |
| run: docker logs data-agent-panel || true |