File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ jobs:
31
31
- name : Checkout repository
32
32
uses : actions/checkout@v4
33
33
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
36
36
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
38
43
39
44
# Check all of our non-dev dependencies are compatible with the MIT license.
40
45
# If you added a new dependencies that is being rejected,
48
53
# Ref: https://github.com/raimon49/pip-licenses/issues/225
49
54
- name : Check Dependencies License
50
55
run : |
51
- poetry self add poetry-plugin-export
52
56
pip-licenses --allow-only="$ALLOWED_LICENSE" \
53
57
--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" " ")
55
59
56
60
- name : Run pre-commit hooks
57
61
run : SKIP=ruff pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments