Skip to content

Commit 4be53fa

Browse files
authored
Add python 3.13 target, refactor on pre-commit and benchmarking tests (#2169)
- add: make cmd to benchmark tests and get the slowest tests. - refactor: change pre-commit from run-ci to only check format. - add: python 3.13 to ci
1 parent 500219e commit 4be53fa

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
- os: ubuntu-latest
6262
python-version: "3.12"
6363
test-type: "full"
64+
- os: ubuntu-latest
65+
python-version: "3.13"
66+
test-type: "full"
6467
# Cross-platform validation (essential tests only)
6568
- os: macos-latest
6669
python-version: "3.11"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
hooks:
66
- id: monorepo-ci
77
name: Run complete monorepo CI pipeline
8-
entry: make run-ci
8+
entry: make run-ci-format-check
99
language: system
1010
pass_filenames: false
1111
always_run: true

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ benchmarks-docker: ## Run benchmarks in docker
5353
docker buildx build --build-arg OPENAI_API_KEY=$(OPENAI_API_KEY) -t ragas-benchmark -f $(GIT_ROOT)/ragas/tests/benchmarks/Dockerfile .
5454
docker inspect ragas-benchmark:latest | jq ".[0].Size" | numfmt --to=si
5555

56+
benchmarks-test: ## Run benchmarks for ragas unit tests
57+
@echo "Running ragas unit tests with timing benchmarks..."
58+
$(Q)cd ragas && uv run pytest --nbmake tests/unit tests/experimental --durations=0 -v $(shell if [ -n "$(k)" ]; then echo "-k $(k)"; fi)
59+
5660
# =============================================================================
5761
# CI/BUILD
5862
# =============================================================================

0 commit comments

Comments
 (0)