-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use standalone nbtest * Add a NOTICE file, as requested by legal
- Loading branch information
1 parent
ebd2e96
commit bda20cd
Showing
14 changed files
with
42 additions
and
628 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
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,21 +1,22 @@ | ||
.PHONY: pre-commit test nbtest notebooks | ||
|
||
pre-commit: | ||
python -m venv .venv | ||
.venv/bin/pip install -r requirements-dev.txt | ||
.venv/bin/pre-commit install | ||
|
||
all: test | ||
.PHONY: install pre-commit nbtest test notebooks | ||
|
||
test: nbtest notebooks | ||
|
||
nbtest: | ||
$(MAKE) -C test/nbtest | ||
|
||
notebooks: search document-chunking | ||
|
||
search: | ||
$(MAKE) -C notebooks/search | ||
|
||
document-chunking: | ||
$(MAKE) -C notebooks/document-chunking | ||
|
||
install: pre-commit nbtest | ||
|
||
pre-commit: | ||
python -m venv .venv | ||
.venv/bin/pip install -r requirements-dev.txt | ||
.venv/bin/pre-commit install | ||
|
||
nbtest: | ||
python3 -m venv .venv | ||
.venv/bin/pip install elastic-nbtest |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nbtest | ||
Copyright 2023-2024 Elasticsearch B.V. |
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,9 +1,8 @@ | ||
#!/bin/bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
NBTEST_DIR=$SCRIPT_DIR/../test/nbtest | ||
|
||
if [[ ! -f $NBTEST_DIR/.venv/bin/nbtest ]]; then | ||
make -C $NBTEST_DIR | ||
if [[ ! -f $SCRIPT_DIR/../.venv/bin/nbtest ]]; then | ||
make nbtest | ||
fi | ||
source $NBTEST_DIR/.venv/bin/activate | ||
nbtest $* | ||
source $SCRIPT_DIR/../.venv/bin/activate | ||
$SCRIPT_DIR/../.venv/bin/nbtest $* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.