aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-07-15 22:31:23 +0100
committerGravatar Joe Banks <[email protected]>2025-07-15 22:48:09 +0100
commitba7fc3b9554a41ef73801a0fd75e0e1dd7e4ea9e (patch)
tree5f05e6892847578c9ede09b1f727c33818974c87
parentUpdate pre-commit hooks to use uv (diff)
Update lint task to use uv
-rw-r--r--.github/workflows/lint-test.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index 2254058bd..966c2c419 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -31,10 +31,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- - name: Install Python Dependencies
- uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0
+ - name: Install uv
+ uses: astral-sh/setup-uv@v6
with:
- python_version: '3.12'
+ enable-cache: true
+ cache-dependency-glob: "uv.lock"
+ activate-environment: true
+
+ - name: Install dependencies
+ run: uv sync --frozen
# Check all of our non-dev dependencies are compatible with the MIT license.
# If you added a new dependencies that is being rejected,
@@ -48,10 +53,9 @@ jobs:
# Ref: https://github.com/raimon49/pip-licenses/issues/225
- name: Check Dependencies License
run: |
- poetry self add poetry-plugin-export
pip-licenses --allow-only="$ALLOWED_LICENSE" \
--ignore-packages attrs \
- --package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ")
+ --package $(uv export --no-hashes --format requirements.txt --no-header --no-annotate | sed "s/==.*//g" | tr "\n" " ")
- name: Run pre-commit hooks
run: SKIP=ruff pre-commit run --all-files