-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7494d4d
commit 1d3ca3c
Showing
1 changed file
with
36 additions
and
24 deletions.
There are no files selected for viewing
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
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/ |