Skip to content

Commit

Permalink
recreate dockerfile as gha
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed Jan 7, 2024
1 parent 7494d4d commit 1d3ca3c
Showing 1 changed file with 36 additions and 24 deletions.
60 changes: 36 additions & 24 deletions .github/workflows/embed-test.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
---
name: Embed Tests
on:
push:
# pull_request:
# types:
# - closed
name: Embed Tests
on:
push:
# pull_request:
# types:
# - closed

jobs:
unit-test:
runs-on: ubuntu-latest
# if: github.event.pull_request.merged == true
container:
image: Dockerfile
steps:
- name: Download Source Files from HF
run: |
pip install huggingface-cli
huggingface-cli login --token ${{ secrets.HF_TOKEN }}
huggingface-cli download --repo-type space TotalSundae/dungeons-and-dragons --include *.xml
- name: Create Embeddings
run: python main.py
- uses: actions/upload-artifact@v4
with:
name: Chroma VectorDB Embeddings
path: data/
jobs:
embed-test:
runs-on: ubuntu-latest
container:
image: ollama/ollama
# if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup Ollama
run: |
ollama serve &
sleep 5
ollama create volo -f ./Modelfile
- name: Install Requirements
run: pip install -r requirements.txt
- name: Download Sources
run: |
pip install huggingface-cli
huggingface-cli login --token ${{ secrets.HF_TOKEN }}
huggingface-cli download --repo-type space TotalSundae/dungeons-and-dragons --include *.xml
- name: Create Embeddings
run: python main.py
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: Chroma VectorDB Embeddings
path: data/

0 comments on commit 1d3ca3c

Please sign in to comment.