aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-03-02 15:54:13 +0000
committerGravatar Chris Lovering <[email protected]>2025-03-02 16:16:36 +0000
commitd2b04db6fbad5f18f64e87740af577ff2828e533 (patch)
tree7ecc90f4555e56b230c71f07060511c9e3e43728
parentAdd uv lock file check in pre-commit hooks (diff)
Update CI to use uv
-rw-r--r--.github/workflows/lint.yaml20
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