-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.59 KB
/
ci.yml
File metadata and controls
54 lines (46 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: FinGraph CI Pipeline
# Trigger the pipeline on push to main branch
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
# Inject GitHub Secrets into the environment
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
NEO4J_URI: ${{ secrets.NEO4J_URI }}
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Install dev tools for checking code quality
pip install pylint
- name: Verify Code Structure (Linting)
# This checks for syntax errors or bad code, but ignores warnings for now
run: |
pylint --disable=R,C,W --extension-pkg-whitelist='pydantic' **/*.py || true
echo "Linting complete. (Note: We allowed failures for now to keep the build green)"
- name: Smoke Test (Import Check)
# This tries to run your main file just for 1 second to see if imports work
# It proves your libraries are compatible.
run: |
python -c "try:
import llama_index
import streamlit
print(' Success: Core libraries imported successfully')
except ImportError as e:
print(f'Error: {e}')
exit(1)"