File tree Expand file tree Collapse file tree 7 files changed +68
-17
lines changed
course_project_bench/tests Expand file tree Collapse file tree 7 files changed +68
-17
lines changed Original file line number Diff line number Diff line change 3030 with :
3131 python-version : ' 3.9'
3232
33- - name : Install dependencies for ${{ matrix.benchmark }}
33+ - name : Install dependencies
3434 working-directory : benchmarks/${{ matrix.benchmark }}
3535 run : |
3636 python -m venv env${{ matrix.benchmark }}
4242 fi
4343 deactivate
4444
45- - name : Create SDK symlink
46- run : |
47- mkdir -p src
48- ln -s ../sdk src/sdk
49-
50- - name : Run tests for ${{ matrix.benchmark }}
45+ - name : Run tests
5146 run : |
5247 source benchmarks/${{ matrix.benchmark }}/env${{ matrix.benchmark }}/bin/activate
53- pytest --version
54- PYTHONPATH=$PYTHONPATH:. pytest benchmarks/${{ matrix.benchmark }}/tests -v
55- deactivate
56-
57- - name : Test completed
58- run : echo "${{ matrix.benchmark }} tests completed successfully."
48+ pytest benchmarks/${{ matrix.benchmark }}/tests -v
49+ deactivate
Original file line number Diff line number Diff line change 1+ # Python
2+ __pycache__ /
3+ * .py [cod ]
4+ * $py.class
5+ * .so
6+ .Python
7+ build /
8+ develop-eggs /
9+ dist /
10+ downloads /
11+ eggs /
12+ .eggs /
13+ lib /
14+ lib64 /
15+ parts /
16+ sdist /
17+ var /
18+ wheels /
19+ pip-wheel-metadata /
20+ share /python-wheels /
21+ * .egg-info /
22+ .installed.cfg
23+ * .egg
24+
25+ # Virtual environments
26+ .venv
27+ venv /
28+ ENV /
29+ env /
30+ .env
31+ env * /
32+
33+ # IDE
34+ .vscode /
35+ .idea /
36+ * .swp
37+ * .swo
38+ * ~
39+
40+ # Testing
41+ .pytest_cache /
42+ .coverage
43+ htmlcov /
44+ .tox /
45+
46+ # Logs
47+ logs /
48+ * .log
49+
50+ # OS
51+ .DS_Store
52+ Thumbs.db
53+
54+ # Project specific
55+ outputs /
56+ * .jsonl
57+ ! benchmarks /* /data /** /* .jsonl
Original file line number Diff line number Diff line change 1- from src . sdk import Evaluator
1+ from sdk import Evaluator
22
33
44def test_jaccard_similarity_ngrams ():
Original file line number Diff line number Diff line change 1- from src . sdk import Evaluator
1+ from sdk import Evaluator
22
33
44def test_jaccard_similarity_ngrams ():
Original file line number Diff line number Diff line change 1- from src . sdk import Evaluator
1+ from sdk import Evaluator
22
33
44def test_jaccard_similarity_ngrams ():
Original file line number Diff line number Diff line change 1- from src . sdk import Evaluator
1+ from sdk import Evaluator
22
33
44def test_jaccard_similarity_ngrams ():
Original file line number Diff line number Diff line change @@ -49,3 +49,6 @@ convention = "google"
4949[tool .ruff .format ]
5050docstring-code-format = true
5151quote-style = " single"
52+
53+ [tool .pytest .ini_options ]
54+ pythonpath = [" ." ]
You can’t perform that action at this time.
0 commit comments