diff --git a/.github/workflows/linting_and_type_checking.yml b/.github/workflows/linting_and_type_checking.yml index b06a0d7c..1827bc42 100644 --- a/.github/workflows/linting_and_type_checking.yml +++ b/.github/workflows/linting_and_type_checking.yml @@ -23,18 +23,14 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install uv - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - $HOME/.cargo/bin/uv --version - - - name: Create virtual environment - run: | - $HOME/.cargo/bin/uv venv - source .venv/bin/activate - - - name: Install dependencies - run: | - $HOME/.cargo/bin/uv pip install -e '.[dev]' + uses: astral-sh/setup-uv@v4 + with: + # Install a specific version of uv. + version: "0.5.9" + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + run: uv pip install -e ".[dev]" - name: Run mypy run: mypy src/hssm