Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

ci: remove 3 redundant pytest workflows and 1 schedule (#1876)

LearningCircuite048808756b0
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 10da7917f8..8c80bc0031 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -56,7 +56,6 @@
/.github/workflows/accessibility-compliance-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/api-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/critical-ui-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
-/.github/workflows/enhanced-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/extended-ui-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/followup-research-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/infrastructure-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
@@ -65,9 +64,7 @@
/.github/workflows/metrics-analytics-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/mobile-ui-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/news-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
-/.github/workflows/notification-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/performance-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
-/.github/workflows/text-optimization-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/ui-tests.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
/.github/workflows/fuzz.yml @scottvr @tombii @prashant-sharma-cmd @shreydekate @LearningCircuit @hashedviking @djpetti
diff --git a/.github/workflows/enhanced-tests.yml b/.github/workflows/enhanced-tests.yml
deleted file mode 100644
index a914840926..0000000000
--- a/.github/workflows/enhanced-tests.yml
+++ /dev/null
@@ -1,90 +0,0 @@
-name: Enhanced Test Framework
-
-on:
- pull_request:
- types: [opened, synchronize, reopened]
- branches: [ main, dev ]
- paths:
- - 'tests/**'
- - 'src/local_deep_research/web_search_engines/**'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- enhanced-tests:
- runs-on: ubuntu-latest
- name: Enhanced Test Framework
-
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
- with:
- egress-policy: audit
-
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
- with:
- persist-credentials: false
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
-
- - name: Build Docker image with cache
- uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
- with:
- context: .
- target: ldr-test
- load: true
- tags: ldr-test
- cache-from: type=gha
- cache-to: type=gha,mode=max
-
- - name: Run enhanced test framework tests
- run: |
- docker run --rm \
- -v "$PWD":/app \
- -e LDR_USE_FALLBACK_LLM=true \
- -e CI=true \
- -w /app \
- ldr-test \
- sh -c "python -m pytest -v -n auto \
- tests/test_wikipedia_url_security.py \
- tests/test_search_engines_enhanced.py \
- tests/test_utils.py \
- -x \
- --tb=short"
-
- - name: Run fixture tests
- run: |
- docker run --rm \
- -v "$PWD":/app \
- -e LDR_USE_FALLBACK_LLM=true \
- -e CI=true \
- -w /app \
- ldr-test \
- sh -c 'python -c "
- from tests.fixtures.search_engine_mocks import SearchEngineMocks, validate_wikipedia_url
- from tests.mock_fixtures import get_mock_search_results
- from tests.mock_modules import create_mock_llm_config
- print(\"✅ All fixture imports successful\")
- # Test URL validation
- assert validate_wikipedia_url(\"https://en.wikipedia.org/wiki/Test\") == True
- assert validate_wikipedia_url(\"https://evil.com/wiki/Test\") == False
- print(\"✅ URL validation tests passed\")
- # Test mock data
- results = get_mock_search_results()
- assert len(results) == 2
- print(\"✅ Mock data tests passed\")
- "'
-
- - name: Upload test results
- if: always()
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- with:
- name: enhanced-test-results
- path: |
- .coverage
- htmlcov/
- tests/screenshots/
diff --git a/.github/workflows/notification-tests.yml b/.github/workflows/notification-tests.yml
deleted file mode 100644
index 6eb7b10eec..0000000000
--- a/.github/workflows/notification-tests.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-name: Notification Tests
-
-on:
- pull_request:
- types: [opened, synchronize, reopened]
- paths:
- - 'src/local_deep_research/notifications/**'
- - 'tests/notifications/**'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- test-notifications:
- runs-on: ubuntu-latest
- name: Notification System Tests
-
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
- with:
- egress-policy: audit
-
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- persist-credentials: false
-
- - name: Set up Python
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- with:
- python-version: '3.12'
-
- - name: Set up PDM
- uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
- with:
- python-version: '3.12'
- cache: true
-
- - name: Install system dependencies for SQLCipher
- run: |
- sudo apt-get update
- sudo apt-get install -y libsqlcipher-dev
-
- - name: Install dependencies
- run: |
- # Install in development mode to ensure all modules are available
- pdm sync -d
-
- - name: Run notification tests
- run: |
- pdm run pytest tests/notifications/ -v --tb=short -n auto
-
- - name: Run coverage report
- run: |
- pdm run pytest tests/notifications/ --cov=src/local_deep_research/notifications --cov-report=xml --cov-report=term
-
- - name: Upload coverage reports
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
- with:
- files: ./coverage.xml
- flags: notifications
- name: notification-coverage
diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml
index 8b74c6211c..eb0930bf6b 100644
--- a/.github/workflows/performance-tests.yml
+++ b/.github/workflows/performance-tests.yml
@@ -4,9 +4,6 @@ on:
pull_request:
branches: [ main, dev, develop ]
workflow_dispatch:
- schedule:
- # Run performance tests weekly on Sunday at 3 AM UTC
- - cron: '0 3 * * 0'
permissions:
contents: read
diff --git a/.github/workflows/text-optimization-tests.yml b/.github/workflows/text-optimization-tests.yml
deleted file mode 100644
index 172c40db40..0000000000
--- a/.github/workflows/text-optimization-tests.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: Text Optimization Tests
-
-on:
- pull_request:
- types: [opened, synchronize, reopened]
- paths:
- - 'src/local_deep_research/text_optimization/**'
- - 'tests/text_optimization/**'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- test-text-optimization:
- runs-on: ubuntu-latest
- name: Text Optimization Module Tests
-
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
- with:
- egress-policy: audit
-
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
- with:
- persist-credentials: false
-
- - name: Set up Python
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- with:
- python-version: '3.12'
-
- - name: Set up PDM
- uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
- with:
- python-version: '3.12'
- cache: true
-
- - name: Install system dependencies for SQLCipher
- run: |
- sudo apt-get update
- sudo apt-get install -y libsqlcipher-dev
-
- - name: Install dependencies
- run: |
- # Install in development mode to ensure all modules are available
- pdm sync -d
-
- - name: Run text optimization tests
- run: |
- pdm run pytest tests/text_optimization/ -v --tb=short -n auto
-
- - name: Run coverage report
- run: |
- pdm run pytest tests/text_optimization/ --cov=src/local_deep_research/text_optimization --cov-report=xml --cov-report=term
-
- - name: Upload coverage reports
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
- with:
- files: ./coverage.xml
- flags: text-optimization
- name: text-optimization-coverage
diff --git a/docs/CI_CD_INFRASTRUCTURE.md b/docs/CI_CD_INFRASTRUCTURE.md
index 06e96405fb..593f67c82c 100644
--- a/docs/CI_CD_INFRASTRUCTURE.md
+++ b/docs/CI_CD_INFRASTRUCTURE.md
@@ -89,10 +89,8 @@ pre-commit install-hooks
| `extended-ui-tests.yml` | PR, push | Extended UI validation |
| `e2e-research-test.yml` | PR, push | End-to-end research flow |
| `infrastructure-tests.yml` | PR, push | Infrastructure validation |
-| `text-optimization-tests.yml` | PR, push | Text processing tests |
| `library-tests.yml` | PR, push | Research library tests |
| `news-tests.yml` | PR, push | News subscription tests |
-| `notification-tests.yml` | PR, push | Notification system tests |
| `llm-tests.yml` | PR, push | LLM provider tests |
| `metrics-analytics-tests.yml` | PR, push | Analytics tests |
| `performance-tests.yml` | PR, push | Performance benchmarks |
@@ -168,7 +166,6 @@ pre-commit install-hooks
| `check-env-vars.yml` | PR, push | Environment variable validation |
| `file-whitelist-check.yml` | PR, push | File type validation |
| `version_check.yml` | PR, push | Version consistency check |
-| `enhanced-tests.yml` | PR, push | Enhanced test configuration |
---
diff --git a/tests/CI_INTEGRATION.md b/tests/CI_INTEGRATION.md
index 7fdbdcd9ab..9865730439 100644
--- a/tests/CI_INTEGRATION.md
+++ b/tests/CI_INTEGRATION.md
@@ -18,15 +18,14 @@ These tests run in all profiles:
- **full** - Comprehensive testing (< 15min)
- **unit-only** - Unit tests only (< 10s)
-## 2. Dedicated Enhanced Tests Workflow
-
-### `.github/workflows/enhanced-tests.yml`
-A dedicated workflow for the enhanced test framework that:
-- Triggers on changes to test files or search engine code
-- Runs the new test suite separately for quick feedback
-- Validates all fixtures can be imported and used
-- Tests URL validation security features
-- Uploads test results and coverage
+## 2. CI Workflow Integration
+
+### `.github/workflows/pytest-tests.yml`
+The main pytest workflow runs all tests including the enhanced test framework:
+- Runs on all PRs and pushes to main/dev
+- Includes URL validation security tests
+- Includes enhanced search engine tests
+- Uploads coverage reports to GitHub Pages
## 3. Test Organization
diff --git a/tests/TESTING_COMPARISON.md b/tests/TESTING_COMPARISON.md
index 7f19829071..e31141b112 100644
--- a/tests/TESTING_COMPARISON.md
+++ b/tests/TESTING_COMPARISON.md
@@ -43,7 +43,7 @@
- Mock LLM responses, search results, API responses
4. **CI/CD Integration**
- - `.github/workflows/enhanced-tests.yml` - Dedicated test workflow
+ - Tests run via `pytest-tests.yml` workflow
- Integration with existing test runner
- Automated testing on PRs