File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 47
47
uses : actions/setup-python@v5
48
48
with :
49
49
python-version : ${{ inputs.python-version }}
50
- cache : ' pip'
51
- cache-dependency-path : |
52
- **/requirements*.txt
53
- **/pyproject.toml
54
- **/poetry.lock
55
- **/Pipfile.lock
56
50
57
51
- name : Install uv
58
52
uses : astral-sh/setup-uv@v5
@@ -63,14 +57,14 @@ jobs:
63
57
id : get-uv-cache
64
58
run : echo "UV_CACHE_DIR=$(uv cache dir)" >> $GITHUB_OUTPUT
65
59
60
+ - name : Install dependencies
61
+ if : ${{ inputs.install-deps != 'none' }}
62
+ run : uv sync --extra ${{ inputs.install-deps }}
63
+
66
64
- name : Cache uv packages
67
65
uses : actions/cache@v4
68
66
with :
69
67
path : ${{ steps.get-uv-cache.outputs.UV_CACHE_DIR }}
70
68
key : ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt') }}
71
69
restore-keys : |
72
70
${{ runner.os }}-uv-
73
-
74
- - name : Install dependencies
75
- if : ${{ inputs.install-deps != 'none' }}
76
- run : uv sync --extra ${{ inputs.install-deps }}
You can’t perform that action at this time.
0 commit comments