diff options
| -rw-r--r-- | .github/workflows/lint.yaml | 20 | 
1 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index aef0b11..4a7a23d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -13,17 +13,27 @@ jobs:        - name: Install native dependencies          run: sudo apt-get update && sudo apt-get install -y libldap2-dev libsasl2-dev heimdal-dev -      - name: Install Python dependencies -        uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0 +      - name: Install uv +        uses: astral-sh/setup-uv@v5          with: -          python_version: "3.13" +          version: "0.5.29" +          enable-cache: true +          cache-dependency-glob: "uv.lock" + +      - name: "Set up Python" +        uses: actions/setup-python@v5 +        with: +          python-version-file: "pyproject.toml" + +      - name: Install the project +        run: uv sync --group dev        - name: Run pre-commit hooks -        run: SKIP=ruff-lint pre-commit run --all-files +        run: SKIP=ruff-lint uv run pre-commit run --all-files        # Run `ruff` using github formatting to enable automatic inline annotations.        - name: Run ruff -        run: "ruff check --output-format=github ." +        run: "uv run ruff check --output-format=github ."    artifact:      name: Generate & upload pull request artifacts  |