From 3dc25b29db9fc0f048f933b8651f469067f88837 Mon Sep 17 00:00:00 2001 From: tylertitsworth Date: Sun, 7 Jan 2024 14:41:43 -0800 Subject: [PATCH] add embed test --- .github/workflows/embed-test.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/unit-test.yaml | 2 -- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/embed-test.yaml diff --git a/.github/workflows/embed-test.yaml b/.github/workflows/embed-test.yaml new file mode 100644 index 0000000..74e439d --- /dev/null +++ b/.github/workflows/embed-test.yaml @@ -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/ diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index cb1044b..8522bbb 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -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