-
-
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.
Refs: actions/setup-python#807
- Loading branch information
Showing
3 changed files
with
100 additions
and
0 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 |
---|---|---|
|
@@ -43,6 +43,26 @@ 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 | ||
# XXX Create an empty requirements.txt if this file (or pyproject.toml) doesn't exist. | ||
# This work around and issue with setup-python for non-Python projects, which ends up with ends up | ||
# with this error: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.12 | ||
# cache: pip | ||
# Installed versions | ||
# Successfully set up CPython (3.12.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('**/requirements.txt', '**/pyproject.toml') == '' | ||
run: | | ||
touch ./requirements.txt | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
@@ -186,6 +206,26 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Hack setup-python cache | ||
# XXX Create an empty requirements.txt if this file (or pyproject.toml) doesn't exist. | ||
# This work around and issue with setup-python for non-Python projects, which ends up with ends up | ||
# with this error: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.12 | ||
# cache: pip | ||
# Installed versions | ||
# Successfully set up CPython (3.12.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('**/requirements.txt', '**/pyproject.toml') == '' | ||
run: | | ||
touch ./requirements.txt | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
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 |
---|---|---|
|
@@ -151,6 +151,26 @@ 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 | ||
# XXX Create an empty requirements.txt if this file (or pyproject.toml) doesn't exist. | ||
# This work around and issue with setup-python for non-Python projects, which ends up with ends up | ||
# with this error: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.12 | ||
# cache: pip | ||
# Installed versions | ||
# Successfully set up CPython (3.12.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('**/requirements.txt', '**/pyproject.toml') == '' | ||
run: | | ||
touch ./requirements.txt | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
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,6 +29,26 @@ 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 | ||
# XXX Create an empty requirements.txt if this file (or pyproject.toml) doesn't exist. | ||
# This work around and issue with setup-python for non-Python projects, which ends up with ends up | ||
# with this error: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.12 | ||
# cache: pip | ||
# Installed versions | ||
# Successfully set up CPython (3.12.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('**/requirements.txt', '**/pyproject.toml') == '' | ||
run: | | ||
touch ./requirements.txt | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
@@ -90,6 +110,26 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Hack setup-python cache | ||
# XXX Create an empty requirements.txt if this file (or pyproject.toml) doesn't exist. | ||
# This work around and issue with setup-python for non-Python projects, which ends up with ends up | ||
# with this error: | ||
# | ||
# Run actions/[email protected] | ||
# with: | ||
# python-version: 3.12 | ||
# cache: pip | ||
# Installed versions | ||
# Successfully set up CPython (3.12.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('**/requirements.txt', '**/pyproject.toml') == '' | ||
run: | | ||
touch ./requirements.txt | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|