Skip to content

Commit ba7fc3b

Browse files
committed
Update lint task to use uv
1 parent 08fdccd commit ba7fc3b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/lint-test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ jobs:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
3333

34-
- name: Install Python Dependencies
35-
uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v6
3636
with:
37-
python_version: '3.12'
37+
enable-cache: true
38+
cache-dependency-glob: "uv.lock"
39+
activate-environment: true
40+
41+
- name: Install dependencies
42+
run: uv sync --frozen
3843

3944
# Check all of our non-dev dependencies are compatible with the MIT license.
4045
# If you added a new dependencies that is being rejected,
@@ -48,10 +53,9 @@ jobs:
4853
# Ref: https://github.com/raimon49/pip-licenses/issues/225
4954
- name: Check Dependencies License
5055
run: |
51-
poetry self add poetry-plugin-export
5256
pip-licenses --allow-only="$ALLOWED_LICENSE" \
5357
--ignore-packages attrs \
54-
--package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ")
58+
--package $(uv export --no-hashes --format requirements.txt --no-header --no-annotate | sed "s/==.*//g" | tr "\n" " ")
5559
5660
- name: Run pre-commit hooks
5761
run: SKIP=ruff pre-commit run --all-files

0 commit comments

Comments
 (0)