René's URL Explorer Experiment


Title: Feature request: Do not fail when caching on non-Python repositories · Issue #807 · actions/setup-python · GitHub

Open Graph Title: Feature request: Do not fail when caching on non-Python repositories · Issue #807 · actions/setup-python

X Title: Feature request: Do not fail when caching on non-Python repositories · Issue #807 · actions/setup-python

Description: Description: I am trying to use setup-python in a non Python repository. But I soon as I activate the cache, it ends up with this error: Run actions/setup-python@v5.0.0 with: python-version: 3.12 cache: pip Installed versions Successfull...

Open Graph Description: Description: I am trying to use setup-python in a non Python repository. But I soon as I activate the cache, it ends up with this error: Run actions/setup-python@v5.0.0 with: python-version: 3.12 c...

X Description: Description: I am trying to use setup-python in a non Python repository. But I soon as I activate the cache, it ends up with this error: Run actions/setup-python@v5.0.0 with: python-version: 3.12 c...

Opengraph URL: https://github.com/actions/setup-python/issues/807

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Do not fail when caching on non-Python repositories","articleBody":"**Description:**\r\n\r\nI am trying to use `setup-python` in a non Python repository. But I soon as I activate the cache, it ends up with this error:\r\n\r\n```\r\nRun actions/setup-python@v5.0.0\r\n  with:\r\n    python-version: 3.12\r\n    cache: pip\r\nInstalled versions\r\n  Successfully set up CPython (3.12.1)\r\nError: No file in /home/runner/work/awesome-iam/awesome-iam matched to\r\n[**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository\r\n```\r\n\r\nThats because the project I check out just before has no `**/requirements.txt` or `**/pyproject.toml` file.\r\n\r\nAnd the reason it has no such file is that the `actions/checkout` and `setup-python` steps are located in a reused workflow.\r\n\r\n**Action version:**\r\n`setup-python@v5.0.0`\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [x] macOS\r\n- [x] Windows\r\n\r\n**Runner type:**\r\n- [x] Hosted\r\n- [ ] Self-hosted\r\n\r\n**Tools version:**\r\nAny version of Python.\r\n\r\n**Repro steps:**  \r\n\r\nHere is the source code of my reused workflow: https://github.com/kdeldycke/workflows/blob/f50130aabec1fe713a548e3296f723732c79a178/.github/workflows/lint.yaml#L26-L35\r\n\r\nAnd here is the result of this invokation: https://github.com/kdeldycke/awesome-iam/actions/runs/7592900227/job/20682781487#step:3:13\r\n\r\n**Expected behavior:**\r\nI expect `setup-python` not to fail in the absence of a `**/requirements.txt` or `**/pyproject.toml` file.\r\n\r\n**Actual behavior:**\r\nThe step fails with the following message:\r\n\r\n```\r\nRun actions/setup-python@v5.0.0\r\n  with:\r\n    python-version: 3.12\r\n    cache: pip\r\nInstalled versions\r\n  Successfully set up CPython (3.12.1)\r\nError: No file in /home/runner/work/awesome-iam/awesome-iam matched to\r\n[**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository\r\n```\r\n","author":{"url":"https://github.com/kdeldycke","@type":"Person","name":"kdeldycke"},"datePublished":"2024-01-30T14:24:52Z","url":"https://github.com/actions/setup-python/issues/807"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8dff9b41-2a22-1fab-6789-a68668a895e5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DE4:AA9CB:9F505A:D12431:6B026136
html-safe-nonce9f8d17d8df6218b2d8e87917532a3503d3a2eb06a36a7734c253cc7170ec3ef6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REU0OkFBOUNCOjlGNTA1QTpEMTI0MzE6NkIwMjYxMzYiLCJ2aXNpdG9yX2lkIjoiOTIyMTQ3NDc5Njk3NjYyODAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8bf5cce300b84f91c1ccbd8fd0077b3e49f8a9fcec1639a22791599c79d90f88
hovercard-subject-tagissue:2107991363
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/807/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d0551129036bfad14b50977bc66e5c1aab99f17b4ce9d5a5e4e25673e7437c23/actions/setup-python/issues/807
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d0551129036bfad14b50977bc66e5c1aab99f17b4ce9d5a5e4e25673e7437c23/actions/setup-python/issues/807
og:image:altDescription: I am trying to use setup-python in a non Python repository. But I soon as I activate the cache, it ends up with this error: Run actions/setup-python@v5.0.0 with: python-version: 3.12 c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekdeldycke
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/807#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F807
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F807
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/807
Reloadhttps://github.com/actions/setup-python/issues/807
Reloadhttps://github.com/actions/setup-python/issues/807
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues37 (37)https://github.com/actions/setup-python/issues
Pull requests22 (22)https://github.com/actions/setup-python/pulls
Actionshttps://github.com/actions/setup-python/actions
Projectshttps://github.com/actions/setup-python/projects
Security and qualityhttps://github.com/actions/setup-python/security
Insightshttps://github.com/actions/setup-python/insights
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/807
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/807
Feature request: Do not fail when caching on non-Python repositorieshttps://github.com/actions/setup-python/issues/807#top
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#issue-2107991363
https://github.com/kdeldycke/workflows/blob/f50130aabec1fe713a548e3296f723732c79a178/.github/workflows/lint.yaml#L26-L35https://github.com/kdeldycke/workflows/blob/f50130aabec1fe713a548e3296f723732c79a178/.github/workflows/lint.yaml#L26-L35
https://github.com/kdeldycke/awesome-iam/actions/runs/7592900227/job/20682781487#step:3:13https://github.com/kdeldycke/awesome-iam/actions/runs/7592900227/job/20682781487#step:3:13
Nexthttps://github.com/actions/setup-python/issues/807?timeline_page=1
kdeldyckehttps://github.com/kdeldycke
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#event-11642594519
https://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#issuecomment-1917094238
Add a new input to skip cache updates #751https://github.com/actions/setup-python/issues/751
Add cache-save: false option #762https://github.com/actions/setup-python/pull/762
kdeldyckehttps://github.com/kdeldycke
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#event-11643391473
Hack setup-python to allow caching.https://github.com/kdeldycke/repomatic/commit/662a971ef26023b87498fae7613a740d9148f61b
662a971https://github.com/kdeldycke/repomatic/commit/662a971ef26023b87498fae7613a740d9148f61b
https://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#issuecomment-1917299916
kdeldycke/repomatic@662a971https://github.com/kdeldycke/repomatic/commit/662a971ef26023b87498fae7613a740d9148f61b
https://github.com/v-HarithaVattikuti
v-HarithaVattikutihttps://github.com/v-HarithaVattikuti
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#issuecomment-1917631756
@kdeldyckehttps://github.com/kdeldycke
v-HarithaVattikutihttps://github.com/v-HarithaVattikuti
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Jan 30, 2024https://github.com/actions/setup-python/issues/807#event-11645772591
pl4ntyhttps://github.com/pl4nty
on Mar 9, 2024https://github.com/actions/setup-python/issues/807#event-12061906977
ci: use requirements.txt for ctfcli, swap linting/chals pathshttps://github.com/pl4nty/auto-CTFd/commit/503594efd2da9ef1ec10c729125f54d45dd51dc6
503594ehttps://github.com/pl4nty/auto-CTFd/commit/503594efd2da9ef1ec10c729125f54d45dd51dc6
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
on Apr 17, 2024https://github.com/actions/setup-python/issues/807#event-12507425302
https://github.com/v-aparnajyothi-y
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
on Apr 19, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2066161783
@kdeldyckehttps://github.com/kdeldycke
this documenthttps://github.com/actions/checkout/blob/cd7d8d697e10461458bc61a30d094dc601a8b017/README.md?plain=1#L170
https://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on Apr 19, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2066430525
https://github.com/deslaughter
deslaughterhttps://github.com/deslaughter
on Apr 23, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2073058513
https://github.com/v-aparnajyothi-y
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
on May 7, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2098532636
@kdeldyckehttps://github.com/kdeldycke
@deslaughterhttps://github.com/deslaughter
https://github.com/v-aparnajyothi-y
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
on May 27, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2132843737
@kdeldyckehttps://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on May 27, 2024https://github.com/actions/setup-python/issues/807#event-12943571447
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%22
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Jun 11, 2024https://github.com/actions/setup-python/issues/807#event-13112901019
v-aparnajyothi-yhttps://github.com/v-aparnajyothi-y
on Jun 11, 2024https://github.com/actions/setup-python/issues/807#event-13112904134
abelsiqueirahttps://github.com/abelsiqueira
on Sep 17, 2024https://github.com/actions/setup-python/issues/807#event-14286719605
Add Python version to workflows in package and templatehttps://github.com/JuliaBesties/BestieTemplate.jl/commit/66de28adf44e51cc017a9c1ba905104f38ec42ac
66de28ahttps://github.com/JuliaBesties/BestieTemplate.jl/commit/66de28adf44e51cc017a9c1ba905104f38ec42ac
Add Python version to workflows in package and templatehttps://github.com/JuliaBesties/BestieTemplate.jl/commit/8ad8388412b3e4acb829d34577de68ce87a3acaa
8ad8388https://github.com/JuliaBesties/BestieTemplate.jl/commit/8ad8388412b3e4acb829d34577de68ce87a3acaa
kdeldyckehttps://github.com/kdeldycke
on Dec 24, 2024https://github.com/actions/setup-python/issues/807#event-15756116541
Remove setup-python action, let uv install the right versionhttps://github.com/kdeldycke/repomatic/commit/fc63874019039dbb3631904013a98e174f11d4e9
fc63874https://github.com/kdeldycke/repomatic/commit/fc63874019039dbb3631904013a98e174f11d4e9
https://github.com/kdeldycke
kdeldyckehttps://github.com/kdeldycke
on Dec 24, 2024https://github.com/actions/setup-python/issues/807#issuecomment-2561013016
Astral taking over the python-build-standalone projecthttps://astral.sh/blog/python-build-standalone
download an appropriate version for your environmenthttps://docs.astral.sh/uv/guides/install-python/
kdeldyckehttps://github.com/kdeldycke
completedhttps://github.com/actions/setup-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 24, 2024https://github.com/actions/setup-python/issues/807#event-15756189184
niwishttps://github.com/niwis
on May 21, 2025https://github.com/actions/setup-python/issues/807#event-17750976191
treewide: Work around pip caching w/o requirements.txt issuehttps://github.com/pulp-platform/pulp-actions/commit/1a0f5cf41306f80c7c546af28b21ae656daffc1c
1a0f5cfhttps://github.com/pulp-platform/pulp-actions/commit/1a0f5cf41306f80c7c546af28b21ae656daffc1c
treewide: Work around pip caching w/o requirements.txt issuehttps://github.com/pulp-platform/pulp-actions/commit/06015047af2a4244dbae544f06e6a4d50c971690
0601504https://github.com/pulp-platform/pulp-actions/commit/06015047af2a4244dbae544f06e6a4d50c971690
paulsc96https://github.com/paulsc96
on May 21, 2025https://github.com/actions/setup-python/issues/807#event-17752160159
treewide: Work around pip caching without `requirements.txt` (#21)https://github.com/pulp-platform/pulp-actions/commit/2e5d3fcf544c60c68eaadaf94a7d096ea834e21c
#21https://github.com/pulp-platform/pulp-actions/pull/21
2e5d3fchttps://github.com/pulp-platform/pulp-actions/commit/2e5d3fcf544c60c68eaadaf94a7d096ea834e21c
flodolohttps://github.com/flodolo
on Oct 28, 2025https://github.com/actions/setup-python/issues/807#event-20548917524
Use explicit requirements.txt filehttps://github.com/firefox-devtools/profiler/commit/fd1665a6e8f06ec0f5b01d100db63f0ab5cc1e0a
fd1665ahttps://github.com/firefox-devtools/profiler/commit/fd1665a6e8f06ec0f5b01d100db63f0ab5cc1e0a
flodolohttps://github.com/flodolo
on Nov 4, 2025https://github.com/actions/setup-python/issues/807#event-20702640254
Use explicit requirements.txt filehttps://github.com/firefox-devtools/profiler/commit/2b7b8a005690830b6457c69d8a1a03fb8b22f67a
2b7b8a0https://github.com/firefox-devtools/profiler/commit/2b7b8a005690830b6457c69d8a1a03fb8b22f67a
canovahttps://github.com/canova
on Nov 4, 2025https://github.com/actions/setup-python/issues/807#event-20704826424
Add GitHub workflow to check Fluent reference files (#5647)https://github.com/firefox-devtools/profiler/commit/d44234898e7dce738f70e1337ffb2784f99011d4
#5647https://github.com/firefox-devtools/profiler/pull/5647
d442348https://github.com/firefox-devtools/profiler/commit/d44234898e7dce738f70e1337ffb2784f99011d4
Xeratechttps://github.com/Xeratec
on Mar 13, 2026https://github.com/actions/setup-python/issues/807#event-23539575339
gitlab-ci: General clean-up and improvements (#24)https://github.com/pulp-platform/pulp-actions/commit/f04caa93a280fcdd1bb8f8325af0ff35219c4985
#24https://github.com/pulp-platform/pulp-actions/pull/24
f04caa9https://github.com/pulp-platform/pulp-actions/commit/f04caa93a280fcdd1bb8f8325af0ff35219c4985
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/807
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/807
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.