chore: clean up test workflow by removing redundant dependencies and test steps
This commit is contained in:
parent
a1ee479487
commit
7759936d44
2 changed files with 4 additions and 22 deletions
25
.github/workflows/test-all.yml
vendored
25
.github/workflows/test-all.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue