changed ollama workflow #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |