-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from embeddings-benchmark/add-ci
Added integration tests for MTEB
- Loading branch information
Showing
8 changed files
with
79 additions
and
394 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This workflow will: | ||
# 1) install Python dependencies | ||
# 2) run make test | ||
|
||
|
||
name: Test | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] #, macos-latest, windows-latest] | ||
python-version: ["3.8"] # , "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
make install-for-tests | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
make test |
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,8 @@ | ||
# python | ||
__pycache__ | ||
|
||
# vscode | ||
.vscode/ | ||
|
||
# tmp files | ||
tmp.py |
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,8 @@ | ||
install-for-tests: | ||
@echo "--- Installing dependencies for tests ---" | ||
# just use the dev dependencies from mteb to keep everything compatible | ||
pip install "mteb[dev]>=1.13.0" | ||
|
||
test: | ||
@echo "--- Running tests ---" | ||
pytest |
1 change: 0 additions & 1 deletion
1
results/all-mpnet-base-v2/84f2bcc00d77236f9e89c8a360a00fb1139bf47d/model_metaInstruct.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.