From 89e88336afaa95e08dce43ef66d91ebff96733ab Mon Sep 17 00:00:00 2001 From: Coull Date: Tue, 19 May 2026 12:44:27 -0400 Subject: [PATCH] infra: use uv for python dependency installations --- .github/workflows/python-package.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 2bbb4ed15..d56dbbd9a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -32,18 +32,24 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@v6 - name: Install dependencies + env: + UV_SYSTEM_PYTHON: "true" run: | - pip install --upgrade pip - pip install hatch + uv pip install hatch - name: Install BLAS/LAPACK libraries on Ubuntu if: ${{ runner.os == 'Linux' }} run: sudo apt-get update && sudo apt-get install -y libopenblas-dev liblapack-dev - name: Run integ tests + env: + HATCH_INSTALLER: uv run: | hatch run test -p no:cacheprovider - name: Run optional tests if: ${{ matrix.python-version != '3.10' && matrix.python-version != '3.13' }} + env: + HATCH_INSTALLER: uv run: | hatch run test-mitiq:test \ No newline at end of file