feat(cli): add click as explicit dependency (typer>=0.26 vendors it)
Keep uv and Python toolchain in a persistent host cache and bypass setup-* actions when present; persist uv download cache on the host.
This commit is contained in:
@@ -43,6 +43,11 @@ jobs:
|
|||||||
echo "python not found in toolcache"
|
echo "python not found in toolcache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Persist uv download cache
|
||||||
|
run: |
|
||||||
|
mkdir -p /opt/hostedtoolcache/uv-cache
|
||||||
|
echo "UV_CACHE_DIR=/opt/hostedtoolcache/uv-cache" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
if: steps.uv.outputs.found != 'true'
|
if: steps.uv.outputs.found != 'true'
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: astral-sh/setup-uv@v3
|
||||||
@@ -110,6 +115,11 @@ jobs:
|
|||||||
echo "python not found in toolcache"
|
echo "python not found in toolcache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Persist uv download cache
|
||||||
|
run: |
|
||||||
|
mkdir -p /opt/hostedtoolcache/uv-cache
|
||||||
|
echo "UV_CACHE_DIR=/opt/hostedtoolcache/uv-cache" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
if: steps.uv.outputs.found != 'true'
|
if: steps.uv.outputs.found != 'true'
|
||||||
uses: astral-sh/setup-uv@v3
|
uses: astral-sh/setup-uv@v3
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ license = {text = "MIT"}
|
|||||||
authors = [{name = "Amir Husayn Panahifar", email = "ahp@panahifar.ir"}]
|
authors = [{name = "Amir Husayn Panahifar", email = "ahp@panahifar.ir"}]
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"click>=8.1",
|
||||||
"typer>=0.12",
|
"typer>=0.12",
|
||||||
"rich>=13.0",
|
"rich>=13.0",
|
||||||
"structlog>=24.0",
|
"structlog>=24.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user