presenton/.github/workflows
sudipnext c7860127f2 feat: add support for optional embedded Ollama and enhance database migration handling
- Updated docker-compose.yml to allow disabling embedded Ollama via environment variable.
- Refactored Dockerfile and Dockerfile.dev for improved dependency management and installation process.
- Enhanced FastAPI migration scripts to handle orphaned Alembic revisions and added new database migration logic.
- Improved error handling in background tasks and Codex authentication endpoints.
- Added support for font file uploads with better validation and extraction of font names.
- Introduced new image search functionality with support for Pexels and Pixabay APIs.
2026-04-15 15:39:35 +05:45
..
README.md updated 2026-02-20 12:02:23 +05:45
sync-releaes-to-r2.yml feat: workflow to upload release app to R2 2026-03-21 18:55:57 +05:45
test-all.yml feat: add support for optional embedded Ollama and enhance database migration handling 2026-04-15 15:39:35 +05:45

GitHub Actions Workflows

Test All Applications (test-all.yml)

This workflow runs comprehensive tests for all parts of the application:

  • Main FastAPI - Python tests for the main backend
  • Electron FastAPI - Python tests for the Electron-compatible backend
  • Main Next.js - Lint, build, and Cypress component tests
  • Electron Next.js - Lint, build, and Cypress component tests
  • Docker Build - Verifies Docker image builds successfully

Testing Locally

Before pushing, you can test everything locally using the provided script:

./test-local.sh

This script runs the same tests that GitHub Actions will run, so you can catch issues early.

Manual Testing

If you prefer to test individual components:

FastAPI Tests

# Main FastAPI
cd servers/fastapi
export APP_DATA_DIRECTORY=/tmp/app_data
export TEMP_DIRECTORY=/tmp/presenton
export DATABASE_URL=sqlite+aiosqlite:///./test.db
export DISABLE_ANONYMOUS_TRACKING=true
export DISABLE_IMAGE_GENERATION=true
export PYTHONPATH=$(pwd)
pytest tests/ -v

# Electron FastAPI
cd electron/servers/fastapi
# Same environment variables as above
pytest tests/ -v

Next.js Tests

# Main Next.js
cd servers/nextjs
npm run lint
npm run build

# Electron Next.js
cd electron/servers/nextjs
npm run lint
npm run build

Docker Build

docker build -t presenton:test -f Dockerfile .
docker images | grep presenton:test