Skip to content

Commit

Permalink
Merge pull request #13 from embeddings-benchmark/add-ci
Browse files Browse the repository at this point in the history
Added integration tests for MTEB
  • Loading branch information
KennethEnevoldsen authored Aug 12, 2024
2 parents 0da1545 + ef0e8c3 commit 9c4ba88
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 394 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# python
__pycache__

# vscode
.vscode/

# tmp files
tmp.py
8 changes: 8 additions & 0 deletions makefile
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

This file was deleted.

Loading

0 comments on commit 9c4ba88

Please sign in to comment.