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:
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,
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
You can’t perform that action at this time.
0 commit comments