Jayandhan Soruban commited on
Commit
41baad9
·
1 Parent(s): 07ad145

App finished

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-cd.yml +2 -47
.github/workflows/ci-cd.yml CHANGED
@@ -7,56 +7,11 @@ on:
7
 
8
  jobs:
9
  # ==============================
10
- # 1️⃣ CI: Vector Store Ingestion
11
- # ==============================
12
- vector-ingestion:
13
- name: Run Vector Ingestion Pipeline (main.py)
14
- runs-on: ubuntu-latest
15
- env:
16
- QDRANT_HOST: ${{ secrets.QDRANT_HOST }}
17
- QDRANT_API_KEY: ${{ secrets.QDRANT_API_KEY }}
18
- LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}
19
- LANGCHAIN_PROJECT: ${{ secrets.LANGCHAIN_PROJECT }}
20
- LANGCHAIN_ENDPOINT: ${{ secrets.LANGCHAIN_ENDPOINT }}
21
- GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
22
- steps:
23
- - uses: actions/checkout@v3
24
- with:
25
- lfs: true
26
- fetch-depth: 0
27
-
28
- - name: Install Git LFS
29
- run: |
30
- sudo apt-get update
31
- sudo apt-get install -y git-lfs
32
- git lfs install
33
- git lfs pull
34
-
35
- - name: Set up Python
36
- uses: actions/setup-python@v4
37
- with:
38
- python-version: 3.11
39
-
40
- - name: Check Python version
41
- run: python --version
42
-
43
- - name: Install dependencies
44
- run: |
45
- python -m pip install --upgrade pip
46
- # Ensure NumPy compatible version for Python 3.11
47
- pip install "numpy>=1.26.0"
48
- pip install -r requirements.txt
49
-
50
- - name: Run ingestion pipeline
51
- run: python main.py
52
-
53
- # ==============================
54
- # 2️⃣ CI: Streamlit App Test Build
55
  # ==============================
56
  streamlit-build:
57
  name: Test Build Streamlit App (app.py)
58
  runs-on: ubuntu-latest
59
- needs: vector-ingestion
60
  env:
61
  QDRANT_HOST: ${{ secrets.QDRANT_HOST }}
62
  QDRANT_API_KEY: ${{ secrets.QDRANT_API_KEY }}
@@ -92,7 +47,7 @@ jobs:
92
  run: streamlit run app.py --server.headless true & sleep 10 && kill $!
93
 
94
  # ==============================
95
- # 3️⃣ CD: Deploy to Hugging Face Spaces
96
  # ==============================
97
  deploy-hf:
98
  name: Deploy to Hugging Face Space
 
7
 
8
  jobs:
9
  # ==============================
10
+ # 1️⃣ CI: Streamlit App Test Build
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  # ==============================
12
  streamlit-build:
13
  name: Test Build Streamlit App (app.py)
14
  runs-on: ubuntu-latest
 
15
  env:
16
  QDRANT_HOST: ${{ secrets.QDRANT_HOST }}
17
  QDRANT_API_KEY: ${{ secrets.QDRANT_API_KEY }}
 
47
  run: streamlit run app.py --server.headless true & sleep 10 && kill $!
48
 
49
  # ==============================
50
+ # 2️⃣ CD: Deploy to Hugging Face Spaces
51
  # ==============================
52
  deploy-hf:
53
  name: Deploy to Hugging Face Space