Skip to content

Commit

Permalink
build: use uv with pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Oct 19, 2024
1 parent f3a02bb commit b6e4cdd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/templates/pyright_type_checks/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
description: "Python version to use."
required: false
default: "3.11"
uv_version:
description: "uv version to use."
required: true
pyright_version:
description: "Pre-commit version to use."
required: false
Expand All @@ -19,15 +22,15 @@ runs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Create virtual environment
run: python3 -m venv venv && source venv/bin/activate
shell: bash
- name: Install pyright
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
uv-version: ${{ inputs.uv_version }}
- name: install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pyright==${{ inputs.pyright_version }}
uv sync --all-extras
shell: bash
- name: Run pyright
run: |
python3 -m pyright
uv run pyright
shell: bash

0 comments on commit b6e4cdd

Please sign in to comment.