Skip to content

style: Update Deployment Guide #420

style: Update Deployment Guide

style: Update Deployment Guide #420

Workflow file for this run

name: Test Workflow
on:
push:
branches:
- main
- dev
- demo
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
branches:
- main
- dev
- demo
jobs:
backend_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Backend Dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/ContentProcessor/requirements.txt
pip install pytest-cov
pip install pytest-asyncio
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
- name: Check if Backend Test Files Exist
id: check_backend_tests
run: |
if [ -z "$(find src/ContentProcessor/src/tests -type f -name 'test_*.py')" ]; then
echo "No backend test files found, skipping backend tests."
echo "skip_backend_tests=true" >> $GITHUB_ENV
else
echo "Backend test files found, running tests."
echo "skip_backend_tests=false" >> $GITHUB_ENV
fi
- name: Run Backend Tests with Coverage
if: env.skip_backend_tests == 'false'
run: |
cd src/ContentProcessor
python -m pytest -vv --cov=. --cov-report=xml --cov-report=term-missing --cov-fail-under=80
- name: Skip Backend Tests
if: env.skip_backend_tests == 'true'
run: echo "Skipping backend tests because no test files were found."
# frontend_tests:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout code
# uses: actions/checkout@v5
#
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "20"