5050 ref : ${{ github.event.pull_request.head.sha || github.sha }}
5151 # We're going to browse all new commits.
5252 fetch-depth : 0
53- - name : Hack setup-python cache
54- id : setup_python_hack
55- # XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository.
56- # This hack fix an issue with setup-python, which ends up with this error in non-Python repos:
57- #
58- # Run actions/setup-python@v5.3.0
59- # with:
60- # python-version: 3.13
61- # cache: pip
62- # cache-dependency-path: |
63- # **/pyproject.toml
64- # requirements/*.txt
65- # Installed versions
66- # Successfully set up CPython (3.13.1)
67- # Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to
68- # [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository
69- #
70- # This has been reported at: https://github.com/actions/setup-python/issues/807
71- # In the future this might be addressed by: https://github.com/actions/setup-python/pull/762
72- # or https://github.com/actions/setup-python/issues/751
73- if : hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == ''
74- run : |
75- touch ./pyproject.toml
76- echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT"
77- - uses : actions/setup-python@v5.3.0
78- with :
79- python-version : " 3.13"
80- cache : " pip"
81- cache-dependency-path : |
82- **/pyproject.toml
83- *requirements.txt
84- requirements/*.txt
85- - name : Remove setup-python hack
86- if : steps.setup_python_hack.outputs.tmp_deps_file
87- run : |
88- rm ./pyproject.toml
8953 - name : Install uv
9054 run : |
9155 python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt
@@ -108,38 +72,6 @@ jobs:
10872 runs-on : ubuntu-24.04
10973 steps :
11074 - uses : actions/checkout@v4.2.2
111- - name : Hack setup-python cache
112- id : setup_python_hack
113- # XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository.
114- # This hack fix an issue with setup-python, which ends up with this error in non-Python repos:
115- #
116- # Run actions/setup-python@v5.3.0
117- # with:
118- # python-version: 3.13
119- # cache: pip
120- # cache-dependency-path: |
121- # **/pyproject.toml
122- # requirements/*.txt
123- # Installed versions
124- # Successfully set up CPython (3.13.1)
125- # Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to
126- # [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository
127- #
128- # This has been reported at: https://github.com/actions/setup-python/issues/807
129- # In the future this might be addressed by: https://github.com/actions/setup-python/pull/762
130- # or https://github.com/actions/setup-python/issues/751
131- if : hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == ''
132- run : |
133- touch ./pyproject.toml
134- echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT"
135- - uses : actions/setup-python@v5.3.0
136- with :
137- python-version : " 3.13"
138- cache : " pip"
139- cache-dependency-path : |
140- **/pyproject.toml
141- *requirements.txt
142- requirements/*.txt
14375 - name : Install uv
14476 run : |
14577 python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt
@@ -222,10 +154,6 @@ jobs:
222154 - name : Remove temporary Ruff config
223155 run : |
224156 rm ./ruff.toml
225- - name : Remove setup-python hack
226- if : steps.setup_python_hack.outputs.tmp_deps_file
227- run : |
228- rm ./pyproject.toml
229157 - name : Run blacken-docs
230158 # Ignore failing command: blacken-docs returns 1 if it finds a file that needs to be reformatted:
231159 # https://github.com/adamchainz/blacken-docs/blob/79ef671/blacken_docs.py#L207-L211
@@ -265,14 +193,6 @@ jobs:
265193 runs-on : ubuntu-24.04
266194 steps :
267195 - uses : actions/checkout@v4.2.2
268- - uses : actions/setup-python@v5.3.0
269- with :
270- python-version : " 3.13"
271- cache : " pip"
272- cache-dependency-path : |
273- **/pyproject.toml
274- *requirements.txt
275- requirements/*.txt
276196 - name : Install uv
277197 run : |
278198 python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt
@@ -302,42 +222,6 @@ jobs:
302222 runs-on : ubuntu-24.04
303223 steps :
304224 - uses : actions/checkout@v4.2.2
305- - name : Hack setup-python cache
306- id : setup_python_hack
307- # XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository.
308- # This hack fix an issue with setup-python, which ends up with this error in non-Python repos:
309- #
310- # Run actions/setup-python@v5.3.0
311- # with:
312- # python-version: 3.13
313- # cache: pip
314- # cache-dependency-path: |
315- # **/pyproject.toml
316- # requirements/*.txt
317- # Installed versions
318- # Successfully set up CPython (3.13.1)
319- # Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to
320- # [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository
321- #
322- # This has been reported at: https://github.com/actions/setup-python/issues/807
323- # In the future this might be addressed by: https://github.com/actions/setup-python/pull/762
324- # or https://github.com/actions/setup-python/issues/751
325- if : hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == ''
326- run : |
327- touch ./pyproject.toml
328- echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT"
329- - uses : actions/setup-python@v5.3.0
330- with :
331- python-version : " 3.13"
332- cache : " pip"
333- cache-dependency-path : |
334- **/pyproject.toml
335- *requirements.txt
336- requirements/*.txt
337- - name : Remove setup-python hack
338- if : steps.setup_python_hack.outputs.tmp_deps_file
339- run : |
340- rm ./pyproject.toml
341225 - name : Install uv
342226 run : |
343227 python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt
0 commit comments