-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 915 Bytes
/
main.yml
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
name: Knowledge graph workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
environment: knowledgeGraph
steps:
- name: Checkout code
uses: actions/checkout@v2 # This step clones your repository
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Create necessary directories
run: |
mkdir -p graph_test model_test node_data_test embeddings_test
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Install dependencies listed in your requirements.txt
curl -fsSL https://ollama.com/install.sh | sh # Install Ollama
ollama serve &
ollama pull nomic-embed-text
- name: Testing script
env:
API_KEY: ${{ secrets.API_KEY }}
run: |
python3 -W ignore testing.py