Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in updated #14

Merged
merged 14 commits into from
Aug 12, 2024
Merged
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

Large diffs are not rendered by default.

Loading
Loading