diff --git a/.github/workflows/gpu_test.yml b/.github/workflows/gpu_test.yml index 333769cb9e..c03318d649 100644 --- a/.github/workflows/gpu_test.yml +++ b/.github/workflows/gpu_test.yml @@ -12,6 +12,8 @@ on: env: LD_LIBRARY_PATH: /usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64 + # Use the uv from astral-sh/setup-uv instead of hatch's bundled (pyapp) uv. + HATCH_ENV_TYPE_VIRTUAL_UV_PATH: uv permissions: contents: read @@ -59,6 +61,8 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc with: diff --git a/.github/workflows/hypothesis.yaml b/.github/workflows/hypothesis.yaml index a456b2aa0a..bc711c8490 100644 --- a/.github/workflows/hypothesis.yaml +++ b/.github/workflows/hypothesis.yaml @@ -18,6 +18,8 @@ concurrency: env: FORCE_COLOR: 3 + # Use the uv from astral-sh/setup-uv instead of hatch's bundled (pyapp) uv. + HATCH_ENV_TYPE_VIRTUAL_UV_PATH: uv jobs: @@ -54,6 +56,8 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62e571856b..142290d109 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,11 @@ on: permissions: contents: read +env: + # Use the uv from astral-sh/setup-uv; without an explicit path hatch + # bootstraps its own (pyapp) uv, which fails on non-3.12 runners. + HATCH_ENV_TYPE_VIRTUAL_UV_PATH: uv + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -60,10 +65,10 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch - uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc - with: - version: '1.16.5' + run: python -m pip install hatch==1.16.5 - name: Set Up Hatch Env env: HATCH_ENV: test.py${{ matrix.python-version }}-${{ matrix.dependency-set }} @@ -109,10 +114,10 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch - uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc - with: - version: '1.16.5' + run: python -m pip install hatch==1.16.5 - name: Set Up Hatch Env env: HATCH_ENV: ${{ matrix.dependency-set }} @@ -144,10 +149,10 @@ jobs: with: python-version: '3.13' cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch - uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc - with: - version: '1.16.5' + run: python -m pip install hatch==1.16.5 - name: Set Up Hatch Env run: | hatch run doctest:pip list @@ -168,10 +173,10 @@ jobs: with: python-version: '3.13' cache: 'pip' + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - name: Install Hatch - uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc - with: - version: '1.16.5' + run: python -m pip install hatch==1.16.5 - name: Run Benchmarks run: | hatch env run --env "test.py3.13-minimal" run-benchmark diff --git a/pyproject.toml b/pyproject.toml index e342e8305c..81a4461978 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,7 +257,7 @@ extra-dependencies = [ 'obstore==0.5.*', ] -[tool.hatch.envs.defaults] +[tool.hatch.envs.default] installer = "uv" [tool.hatch.envs.docs]