diff --git a/.github/workflows/installation.yml b/.github/workflows/installation.yml index 487a553d89..6377ab6576 100644 --- a/.github/workflows/installation.yml +++ b/.github/workflows/installation.yml @@ -16,11 +16,18 @@ jobs: python-version: ["3.12"] steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + + - name: Install uv + uses: astral-sh/setup-uv@v2 with: - python-version: ${{ matrix.python-version }} - - name: Install package - run: pip install setuptools . + version: "0.4.12" + enable-cache: true + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + + - name: Install dependencies + run: uv sync --python ${{ matrix.python-version }} + - name: Test import - run: python -c "import leafmap; print('leafmap import successful')" + run: uv run python -c "import leafmap; print('leafmap import successful')"