Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add unittest data

davidmezzetti960f6b6ae7bb
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 381b752b..3757b698 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,7 +33,7 @@ jobs:
pip install .
python -c "import nltk; nltk.download('punkt')"
python --version
- make coverage
+ make data coverage
- uses: pre-commit/[email protected]
if: matrix.os == 'ubuntu-latest'
diff --git a/Makefile b/Makefile
index b6f95765..19a9ba45 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,12 @@ export TOKENIZERS_PARALLELISM := false
# Default python executable if not provided
PYTHON ?= python
+# Download test data
+data:
+ mkdir -p /tmp/txtai
+ wget -N https://github.com/neuml/txtai/releases/download/v2.0.0/tests.tar.gz -P /tmp
+ tar -xvzf /tmp/tests.tar.gz -C /tmp
+
# Unit tests
test:
${PYTHON} -m unittest discover -v -s ${TEST_DIR}
@@ -21,4 +27,4 @@ test:
# Run tests while calculating code coverage
coverage:
coverage run -m unittest discover -v -s ${TEST_DIR}
- coverage combine
\ No newline at end of file
+ coverage combine