Skip to content

Commit

Permalink
add embed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed Jan 7, 2024
1 parent 94b2e36 commit 3dc25b2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/embed-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Unit 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/
2 changes: 0 additions & 2 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ jobs:
python -m pip install -r requirements.txt
- name: Basic Unit Test
run: pytest test/test.py -W ignore::DeprecationWarning
env:
PYTHONPATH: test

0 comments on commit 3dc25b2

Please sign in to comment.