Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Smoke Test # Name of the workflow, shown in GitHub Actions tab

on:
pull_request: # Trigger workflow when a pull request is created/updated
branches:
- develop # Run workflow only if PR targets the 'develop' branch
- main # Or if PR targets the 'main' branch

jobs:
smoke-test:
runs-on: ubuntu-latest # Run the job on the latest Ubuntu runner provided by GitHub

steps:
- name: Checkout repository # Fetch the repository code
uses: actions/checkout@v4 # Use the official GitHub Action to check out code

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies # Install project dependencies
run: |
pip install -r requirements.txt # Install packages listed in requirements.txt
pip install dvc[s3] # Install DVC with S3 support (change to dvc[gdrive] or dvc[azure] if needed)

- name: Run smoke test # Execute smoke test script
run: bash tests/smoke.sh # Run the smoke.sh
11 changes: 11 additions & 0 deletions tests/smoke.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set -e # when error then stop

echo "🚀 Running DVC smoke test..."

# 1. run pipeline
dvc repro --pull --force || { echo "❌ DVC pipeline failed"; exit 1; }

# 2. validate pipeline (at least one *_docling.json exist)
ls data/parsed/docling_or_fallback/*_docling.json >/dev/null 2>&1 || { echo "❌ No parsed outputs found"; exit 1; }

echo "✅ Smoke test passed"
Loading