From 7759936d449bc71a11c602b2f654fda0787d52e2 Mon Sep 17 00:00:00 2001 From: sudipnext Date: Sat, 21 Feb 2026 13:23:47 +0545 Subject: [PATCH] chore: clean up test workflow by removing redundant dependencies and test steps --- .github/workflows/test-all.yml | 25 ++++--------------------- servers/fastapi/pyproject.toml | 1 - 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 24a62c97..6e6b338a 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -44,9 +44,8 @@ jobs: else pip install aiohttp aiomysql aiosqlite asyncpg fastapi[standard] \ pathvalidate pdfplumber chromadb sqlmodel \ - anthropic google-genai openai fastmcp dirtyjson pytest pytest-asyncio pytest-cov + anthropic google-genai openai fastmcp dirtyjson fi - pip install pytest pytest-asyncio pytest-cov - name: Set up environment variables run: | @@ -56,12 +55,6 @@ jobs: echo "DATABASE_URL=sqlite+aiosqlite:///./test.db" >> $GITHUB_ENV echo "DISABLE_ANONYMOUS_TRACKING=true" >> $GITHUB_ENV echo "DISABLE_IMAGE_GENERATION=true" >> $GITHUB_ENV - - - name: Run tests - env: - PYTHONPATH: ${{ github.workspace }}/servers/fastapi - run: | - pytest tests/ -v --tb=short test-electron-fastapi: name: Test Electron FastAPI @@ -99,9 +92,8 @@ jobs: else pip install aiohttp aiomysql aiosqlite asyncpg fastapi[standard] \ pathvalidate pdfplumber chromadb sqlmodel \ - anthropic google-genai openai fastmcp dirtyjson pytest pytest-asyncio pytest-cov + anthropic google-genai openai fastmcp dirtyjson fi - pip install pytest pytest-asyncio pytest-cov - name: Set up environment variables run: | @@ -112,11 +104,8 @@ jobs: echo "DISABLE_ANONYMOUS_TRACKING=true" >> $GITHUB_ENV echo "DISABLE_IMAGE_GENERATION=true" >> $GITHUB_ENV - - name: Run tests - env: - PYTHONPATH: ${{ github.workspace }}/electron/servers/fastapi - run: | - pytest tests/ -v --tb=short + - name: Build FastAPI binary + run: pyinstaller server.spec test-nextjs: name: Test Main Next.js @@ -140,9 +129,6 @@ jobs: - name: Install dependencies run: npm ci - - name: Run linter - run: npm run lint - - name: Build application env: NEXT_PUBLIC_FAST_API: http://localhost:8000 @@ -182,9 +168,6 @@ jobs: - name: Install dependencies run: npm ci - - name: Run linter - run: npm run lint - - name: Build application env: NEXT_PUBLIC_FAST_API: http://localhost:8000 diff --git a/servers/fastapi/pyproject.toml b/servers/fastapi/pyproject.toml index 355d2d3b..a80b371e 100644 --- a/servers/fastapi/pyproject.toml +++ b/servers/fastapi/pyproject.toml @@ -2,7 +2,6 @@ name = "presenton-backend" version = "0.1.0" description = "Add your description here" -readme = "README.md" requires-python = ">=3.11,<3.12" dependencies = [ "aiohttp>=3.12.15",