From 8d9bc0c421b305676460b8dd233d6b96d98c5d37 Mon Sep 17 00:00:00 2001 From: Cheng Date: Wed, 30 Jul 2025 13:19:14 +0900 Subject: [PATCH] Use uv to install packages in linux_build_and_test --- .circleci/config.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a80444ba1..4c37b22a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -84,19 +84,21 @@ jobs: pip install --upgrade cmake sudo apt-get install -y libblas-dev liblapack-dev liblapacke-dev sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev + curl -LsSf https://astral.sh/uv/install.sh | sh - run: name: Install Python package command: | - pip install -e ".[dev]" + uv venv + uv pip install -e ".[dev]" - run: name: Generate package stubs command: | - echo "stubs" - pip install typing_extensions - python setup.py generate_stubs + uv pip install typing_extensions + uv run --no-project setup.py generate_stubs - run: name: Run Python tests command: | + source .venv/bin/activate python -m unittest discover python/tests -v mpirun --bind-to none -host localhost:8 -np 8 python python/tests/mpi_test_distributed.py mlx.launch --verbose -n 8 python/tests/ring_test_distributed.py -v 2> >(tee -a stderr.log >&2)