diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e1c228f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: ClaimVision AI CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: code + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Check syntax + run: python -m py_compile app.py + + - name: Verify imports + run: | + python -c "import streamlit" + python -c "import cv2" + python -c "import pandas" + python -c "import numpy" + + - name: CI Passed + run: echo "✅ ClaimVision AI basic checks passed!" \ No newline at end of file diff --git a/code/requirements.txt b/code/requirements.txt index 36c06bd..18ab71a 100644 --- a/code/requirements.txt +++ b/code/requirements.txt @@ -9,3 +9,4 @@ streamlit plotly joblib shap +opencv-python