Datasets:

Samoed commited on
Commit
1580ccf
·
unverified ·
1 Parent(s): 857d986

change CI to use git repo instead pypi (#409)

Browse files

* change CI to use git repo instead pypi

* fix typo

.github/workflows/model-results-comparison.yaml CHANGED
@@ -43,20 +43,21 @@ jobs:
43
  - name: Fetch origin main
44
  run: git fetch origin main
45
 
46
- - name: Set up Python
47
- uses: actions/setup-python@v5
48
  with:
49
- python-version: '3.10'
50
 
51
  - name: Install dependencies
 
52
  run: |
53
- pip install git+https://github.com/embeddings-benchmark/mteb.git tabulate
54
 
55
  - name: Generate model comparison
56
  env:
57
  REFERENCE_MODELS: ${{ github.event.inputs.reference_models || 'intfloat/multilingual-e5-large google/gemini-embedding-001' }}
58
  run: |
59
- python scripts/create_pr_results_comment.py --reference-models $REFERENCE_MODELS --output model-comparison.md
60
 
61
  - name: Upload comparison report
62
  uses: actions/upload-artifact@v4
 
43
  - name: Fetch origin main
44
  run: git fetch origin main
45
 
46
+ - name: Install uv and set the Python ${{ matrix.python-version }} version
47
+ uses: astral-sh/setup-uv@v7
48
  with:
49
+ python-version: ${{ matrix.python-version }}
50
 
51
  - name: Install dependencies
52
+ shell: bash
53
  run: |
54
+ make install-for-tests
55
 
56
  - name: Generate model comparison
57
  env:
58
  REFERENCE_MODELS: ${{ github.event.inputs.reference_models || 'intfloat/multilingual-e5-large google/gemini-embedding-001' }}
59
  run: |
60
+ uv run python scripts/create_pr_results_comment.py --reference-models $REFERENCE_MODELS --output model-comparison.md
61
 
62
  - name: Upload comparison report
63
  uses: actions/upload-artifact@v4
.github/workflows/test.yml CHANGED
@@ -28,8 +28,10 @@ jobs:
28
  with:
29
  fetch-depth: 0 # to allow us to examine the git diff
30
 
31
- - name: Setup Python ${{ matrix.python-version }}
32
- uses: actions/setup-python@v4
 
 
33
 
34
  - name: Install dependencies
35
  shell: bash
 
28
  with:
29
  fetch-depth: 0 # to allow us to examine the git diff
30
 
31
+ - name: Install uv and set the Python ${{ matrix.python-version }} version
32
+ uses: astral-sh/setup-uv@v7
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
 
36
  - name: Install dependencies
37
  shell: bash
makefile CHANGED
@@ -1,11 +1,10 @@
1
  install-for-tests:
2
  @echo "--- Installing dependencies for tests ---"
3
- pip install pip --upgrade
4
- pip install . --group dev
5
 
6
  test:
7
  @echo "--- Running tests ---"
8
- pytest
9
 
10
  pre-push:
11
  @echo "--- Running pre-push commands ---"
 
1
  install-for-tests:
2
  @echo "--- Installing dependencies for tests ---"
3
+ uv sync --group dev --group pr-comment
 
4
 
5
  test:
6
  @echo "--- Running tests ---"
7
+ uv run --no-sync pytest
8
 
9
  pre-push:
10
  @echo "--- Running pre-push commands ---"
pyproject.toml CHANGED
@@ -4,7 +4,9 @@ version = "0.1.0"
4
  description = "The result repository for mteb"
5
  readme = "README.md"
6
  requires-python = ">=3.10"
7
- dependencies = ["mteb>=2.0"]
 
 
8
 
9
  [dependency-groups]
10
  dev = [
@@ -16,3 +18,6 @@ lint = [
16
  pr-comment = [
17
  "tabulate>=0.9.0",
18
  ]
 
 
 
 
4
  description = "The result repository for mteb"
5
  readme = "README.md"
6
  requires-python = ">=3.10"
7
+ dependencies = [
8
+ "mteb>=2.0",
9
+ ]
10
 
11
  [dependency-groups]
12
  dev = [
 
18
  pr-comment = [
19
  "tabulate>=0.9.0",
20
  ]
21
+
22
+ [tool.uv.sources]
23
+ mteb = { git = "https://github.com/embeddings-benchmark/mteb" }
results/emillykkejensen__Qwen3-Embedding-Scandi-0.6B/cf1e7ba36ebd3d605549d8f02930a18e17b54513/BornholmBitextMining.json CHANGED
@@ -19,4 +19,4 @@
19
  },
20
  "evaluation_time": 158.30338501930237,
21
  "kg_co2_emissions": null
22
- }
 
19
  },
20
  "evaluation_time": 158.30338501930237,
21
  "kg_co2_emissions": null
22
+ }