-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove setup-python action, let uv install the right version
Also remove setup-python caching hacks. Refs: actions/setup-python#807 actions/setup-python#762 actions/setup-python#751 Reverts: 662a971 89d73b1 e8ef6db f65666c
- Loading branch information
Showing
7 changed files
with
3 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,42 +50,6 @@ jobs: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
# We're going to browse all new commits. | ||
fetch-depth: 0 | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -108,38 +72,6 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -222,10 +154,6 @@ jobs: | |
- name: Remove temporary Ruff config | ||
run: | | ||
rm ./ruff.toml | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Run blacken-docs | ||
# Ignore failing command: blacken-docs returns 1 if it finds a file that needs to be reformatted: | ||
# https://github.com/adamchainz/blacken-docs/blob/79ef671/blacken_docs.py#L207-L211 | ||
|
@@ -265,14 +193,6 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -302,42 +222,6 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,6 @@ jobs: | |
- major | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -110,14 +102,6 @@ jobs: | |
# start to discuss this upstream. | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,14 +98,6 @@ jobs: | |
with: | ||
# Fetch all history to extract all contributors. | ||
fetch-depth: 0 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -149,42 +141,6 @@ jobs: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
# We're going to browse all new commits. | ||
fetch-depth: 0 | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,42 +29,6 @@ jobs: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
# We're going to browse all new commits. | ||
fetch-depth: 0 | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
@@ -111,42 +75,6 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Hack setup-python cache | ||
id: setup_python_hack | ||
# XXX Create an empty pyproject.toml if this file (or any *requirements.txt) can't be found in repository. | ||
# This hack fix an issue with setup-python, which ends up with this error in non-Python repos: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.13 | ||
# cache: pip | ||
# cache-dependency-path: | | ||
# **/pyproject.toml | ||
# requirements/*.txt | ||
# Installed versions | ||
# Successfully set up CPython (3.13.1) | ||
# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to | ||
# [requirements/*.txt or **/pyproject.toml], make sure you have checked out the target repository | ||
# | ||
# This has been reported at: https://github.com/actions/setup-python/issues/807 | ||
# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 | ||
# or https://github.com/actions/setup-python/issues/751 | ||
if: hashFiles('**/pyproject.toml', '*requirements.txt', 'requirements/*.txt') == '' | ||
run: | | ||
touch ./pyproject.toml | ||
echo "tmp_deps_file=true" >> "$GITHUB_OUTPUT" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Remove setup-python hack | ||
if: steps.setup_python_hack.outputs.tmp_deps_file | ||
run: | | ||
rm ./pyproject.toml | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,14 +57,6 @@ jobs: | |
- name: List all commits | ||
run: | | ||
git log --decorate=full --oneline | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
**/pyproject.toml | ||
*requirements.txt | ||
requirements/*.txt | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,7 +127,7 @@ jobs: | |
if: matrix.os == 'windows-2019' | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "${{ matrix.python-version }}" | ||
- name: Install uv | ||
run: | | ||
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters