Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
328 commits
Select commit Hold shift + click to select a range
de977ad
Merge pull request #412 from vsafonkin/v-vsafonkin/fix-poetry-cache-test
marko-zivic-93 May 31, 2022
397252c
Update zeit/ncc to vercel/ncc (#393)
dmitry-shibanov May 31, 2022
3f82819
Fix output for prerelease version of poetry (#409)
dmitry-shibanov May 31, 2022
53e1529
add support for python-version-file (#336)
adilosa Jun 2, 2022
f72db17
Made env.var pythonLocation consistent for Python and PyPy (#418)
IvanZosimov Jun 8, 2022
d09bd5e
fix: 3.x-dev can install a 3.y version (#417)
mayeut Jun 8, 2022
775367d
Update docs to v4 version
Jun 9, 2022
813f9b1
Merge pull request #423 from vsafonkin/v-vsafonkin/update-docs-v4
marko-zivic-93 Jun 9, 2022
7e4abae
Pass the `token` input through on GHES (#427)
brcrista Jun 13, 2022
8fb4cbf
README: Document pypy2 and pypy3 are deprecated (#265)
hugovk Jun 15, 2022
cf86e08
Revert "Pass the `token` input through on GHES (#427)" (#437)
brcrista Jun 16, 2022
ffcd000
Allow `python-version-file` to be a relative path (#431)
Kurt-von-Laven Jun 20, 2022
01408ce
Update cache-save.ts to support @actions/cache v3.0.0 lib
Jun 28, 2022
c61bc3d
Update licenses
Jun 28, 2022
a8da2a6
Use /opt/hostedtoolcache as default value AGENT_TOOLSDIRECTORY
dsame Apr 27, 2022
5ad7902
Change README
dsame Apr 28, 2022
7199395
Fix dist folder
dsame May 5, 2022
5d9fdca
Handle each OS in its own way
dsame May 6, 2022
9588973
Exclude windows from the fix
dsame May 6, 2022
9c76df2
Build after rebase
dsame Jun 29, 2022
00a5248
feature: add `update-environment` input (#411)
mayeut Jun 29, 2022
766e8c6
Fixing pipenv CI (#444)
dmitry-shibanov Jun 29, 2022
2a20d9b
add --python 3
dmitry-shibanov Jun 29, 2022
1e52de4
fixing pipenv
dmitry-shibanov Jun 29, 2022
d358f9e
fix check
dmitry-shibanov Jun 29, 2022
27091d5
minor fix
dmitry-shibanov Jun 29, 2022
d7db825
update pypy versions
dmitry-shibanov Jun 29, 2022
69b9446
Add CMake hints
dsame Jun 28, 2022
63086c6
rebase main
dsame Jun 30, 2022
e629242
Fix failed check
dsame Jun 30, 2022
ab6deb3
Merge pull request #440 from akv-platform/v-sdolin/issue-231
marko-zivic-93 Jun 30, 2022
afd3e72
Fix bug in resolveVersionInput()
Jun 30, 2022
6733fc4
Fix typo
Jun 30, 2022
161c3a6
Merge branch 'main' into CacheLibVersionUpdate
Jun 30, 2022
0811650
Rebuild action
Jun 30, 2022
41b9110
Rebuild action
Jun 30, 2022
5407bf6
Merge pull request #448 from IvanZosimov/CacheLibVersionUpdate
marko-zivic-93 Jun 30, 2022
e29a7c8
Merge branch 'main' into ResolveVersionFix
Jun 30, 2022
56f6060
Fix naming
Jun 30, 2022
84087f5
Rearrange logic
Jun 30, 2022
a6b01c4
Rebuild action with new changes
Jun 30, 2022
d97b6ed
Fix typos
Jun 30, 2022
82eddc4
Add warning in case the versionFile isn't found
Jun 30, 2022
5fbb819
Optimize logic, rebuild action
Jun 30, 2022
ccb7da8
Change warning handler to default
Jun 30, 2022
099ed89
Optimize code
Jun 30, 2022
96f494e
trigger checks
dsame Jul 1, 2022
78a2330
Merge pull request #451 from dmitry-shibanov/fx-pipenv-python-version
marko-zivic-93 Jul 1, 2022
412091c
Fix tests for update-environment==false
mayeut Jul 2, 2022
2c9de4e
Remove duplicate code introduced in #440
mayeut Jul 2, 2022
f4b85ae
Update actions
wrt54g Jul 3, 2022
5a1dd6b
Update actions
wrt54g Jul 3, 2022
7d9c63d
Update actions/checkout to v3
wrt54g Jul 3, 2022
d08a9d7
Update actions
wrt54g Jul 3, 2022
4a7ca55
Update actions
wrt54g Jul 3, 2022
b318cec
Update actions/checkout to v3
wrt54g Jul 3, 2022
782f81b
Merge pull request #450 from IvanZosimov/ResolveVersionFix
marko-zivic-93 Jul 4, 2022
364e819
Merge pull request #394 from akv-platform/v-sedoli/set-env-by-default
marko-zivic-93 Jul 4, 2022
af97157
doc: Add multiple wildcards example to readme
akx Jul 4, 2022
f0bcf8b
Merge pull request #456 from akx/patch-1
marko-zivic-93 Jul 5, 2022
0ad0f6a
Merge pull request #452 from mayeut/fix-env
marko-zivic-93 Jul 6, 2022
c4e89fa
Improve readme for 3.x and 3.11-dev style python-version (#441)
Jul 7, 2022
9a40041
Rearrange README.md, add advanced-usage.md
Jul 12, 2022
6dd8ff7
Change tool cache wording
Jul 12, 2022
746f28a
Update REAMDE.md and advanced-usage.md
Jul 13, 2022
09086cc
Update action.yml file
Jul 13, 2022
61fb4e4
Fix review points
Jul 13, 2022
386e4ea
Fix review points
Jul 13, 2022
799afeb
Fix action.yml file
Jul 13, 2022
c474c82
Merge pull request #454 from wrt54g/update
marko-zivic-93 Jul 14, 2022
b88a682
Fix resolveVersionInput() logic
Jul 15, 2022
5517d5f
Fix documentation
Jul 18, 2022
aba6f4b
Merge pull request #465 from IvanZosimov/pythonversionfile
marko-zivic-93 Jul 19, 2022
592a7a7
Add linux os release info to primary key (#467)
panticmilos Jul 19, 2022
49a521f
Fix poetry version (#445)
dmitry-shibanov Jul 25, 2022
2f06e9d
Add check-latest functionality (#406)
dmitry-shibanov Jul 25, 2022
00d9c42
Change part with realted to self-hosted runners
Jul 25, 2022
889226a
Fix typo
Jul 25, 2022
e147df2
Update README.md
scooby Jul 25, 2022
0d94a5d
Fix typo
Jul 26, 2022
b2241a4
Change yml and rebuild action
Jul 26, 2022
1f0a39a
Sync with Main branch
Jul 26, 2022
dd40245
Fix merge artifacts
Jul 26, 2022
5df6377
Merge pull request #471 from scooby/main
marko-zivic-93 Jul 26, 2022
a624f1f
Fix grammar in both documents
Jul 26, 2022
b152b04
Fix typo in advanced-usage.md
Jul 26, 2022
10b8409
docs: Agent Tool Cache
techman83 Jul 15, 2022
9f1915a
fix: Self-Hosted Tool Cache
techman83 Jul 15, 2022
467a981
feat: Add 'IS_MAC' util
techman83 Jul 22, 2022
bc8ee42
fix: Mac Toolpath
techman83 Jul 22, 2022
d5d6770
docs: Mac Tool Path
techman83 Jul 23, 2022
7e39d25
refactor: Debug message for Python installation path
techman83 Jul 26, 2022
81cda82
Fix review points
Jul 26, 2022
c6e66a7
Fix typo
Jul 26, 2022
fd6f59d
Change contents to make them more readable
Jul 26, 2022
853c012
Change advanced-usage.md
Jul 26, 2022
fe396d3
Revert changes
Jul 26, 2022
72394d1
Fix typo
Jul 26, 2022
a93d541
Merge pull request #466 from techman83/fix/tool_path
marko-zivic-93 Jul 26, 2022
c318b92
Fix review points
Jul 28, 2022
9aa1c6c
updated contributors guide
e-korolevskii Jul 31, 2022
cfcafa5
Fix review points
Aug 1, 2022
c4e98b7
Fix broken links
Aug 1, 2022
789730b
Fix broken links in the text body
Aug 1, 2022
e084fca
Merge branch 'main' into ReadmeUpdate
IvanZosimov Aug 1, 2022
b55428b
Merge pull request #472 from IvanZosimov/ReadmeUpdate
marko-zivic-93 Aug 2, 2022
c96b4b5
rephased documents
e-korolevskii Aug 3, 2022
197204a
Update advanced-usage.md
Kludex Aug 9, 2022
c0abeaa
Update docs/contributors.md
e-korolevskii Aug 9, 2022
aa5ddbf
Merge pull request #477 from Kludex/patch-1
marko-zivic-93 Aug 10, 2022
2e6ca74
Merge branch 'actions:main' into main
e-korolevskii Aug 10, 2022
f6795b1
Merge pull request #479 from e-korolevskii/main
marko-zivic-93 Aug 10, 2022
050e616
Update README.md
lkfortuna Aug 26, 2022
978fd06
Merge pull request #491 from lkfortuna/patch-2
marko-zivic-93 Aug 29, 2022
48a0f00
Update runner links
Aug 29, 2022
397a35f
Merge pull request #492 from al-cheb/al-cheb/update-runner-link
marko-zivic-93 Aug 30, 2022
98c991d
Only use github.token on github.com (#443)
ChristopherHX Aug 30, 2022
434aeab
Bump @actions/core from 1.7.0 to 1.9.1 (#495)
mayeut Sep 7, 2022
b4fe97e
upgrade @actions/cache so it respects SEGMENT_DOWNLOAD_TIMEOUT_MINS (…
asottile-sentry Sep 13, 2022
13a464f
Fix typo (#503)
Freed-Wu Sep 20, 2022
0c4d7b8
Update @actions/core to 1.10.0
rentziass Oct 6, 2022
13ae5bb
Merge pull request #517 from rentziass/rentziass/update-actions-core
marko-zivic-93 Oct 7, 2022
8bcd256
Add architecture input check for PyPy for Windows platform (#520)
Oct 18, 2022
4818a5a
Handle download HTTP error (#511)
dsame Oct 24, 2022
af57b64
Extend docu regarding rate limit issues. (#510)
kasuteru Oct 31, 2022
47c4a7a
fix(ci): run `.github/workflows/workflow.yml` on ubuntu-20.04 (#535)
mayeut Nov 7, 2022
5cddb27
Recommend setting python-version (#545)
heavywatal Nov 21, 2022
b80efd6
Update to latest `actions/publish-action` (#546)
JamesMGreene Nov 24, 2022
1aafadc
Caching projects that use setup.py (#549)
simonw Nov 29, 2022
76bbdfa
Update minimatch (#558)
dmitry-shibanov Dec 7, 2022
2c3dd9e
Add OS info to the error message (#559)
MaksimZhukov Dec 7, 2022
206e984
refactor: Use early return pattern to avoid nested conditions (#566)
jongwooo Dec 19, 2022
c3e0339
Update action to use reusable workflows (#569)
IvanZosimov Dec 22, 2022
5ccb29d
Install multiple python versions (#567)
dmitry-shibanov Dec 22, 2022
8b89ef0
Use correct Poetry config when collecting Poetry projects (#447)
oranav Jan 3, 2023
4dcd676
Update CODEOWNERS (#576)
e-korolevskii Jan 4, 2023
dec86ec
Bump json5 from 2.2.0 to 2.2.3 (#579)
dependabot[bot] Jan 4, 2023
d27e3f3
Fix outdated ref to actions/setup-python@v3 in doc (#581)
bagerard Jan 9, 2023
f60fe39
Update release-new-action-version.yml (#584)
MaksimZhukov Jan 12, 2023
34b4b62
Encourage the use of pre-release Python 3.12, not 3.11 (#586)
cclauss Jan 16, 2023
a6eba85
Fix small action version typo in docs (#590)
Jalmeida1994 Jan 18, 2023
2652534
feature: fallback to pre-release when no stable version is found (#414)
mayeut Jan 27, 2023
1811840
Update workflow badges (#594)
IvanZosimov Jan 31, 2023
3faddef
Fix GHE documentation link (#602)
fevrin Feb 9, 2023
869e769
Trim trailing newlines from `resolvedPyPyVersion` (#610)
kurtmckee Feb 20, 2023
7b9ef6f
Add another pip default dependency file for cache hash (#604)
e-korolevskii Feb 20, 2023
ec365b4
Add and configure ESLint and update configuration for Prettier (#617)
IvanZosimov Mar 9, 2023
0ffa49c
Add update-config-files.yml
Mar 9, 2023
b41aaf9
Merge pull request #621 from akv-platform/reusable-workflow
marko-zivic-93 Mar 10, 2023
03eb867
Add error handling for saving and restoring cache (#618)
dmitry-shibanov Mar 10, 2023
dfa76f8
Update configuration files (#622)
github-actions[bot] Mar 14, 2023
3091b37
Fix glob bug in package.json scripts section (#637)
IvanZosimov Apr 3, 2023
d1244c8
Remove ubuntu-18.04 from e2e (#641)
dmitry-shibanov Apr 4, 2023
7a4f344
Add warning for empty cache paths (#642)
dmitry-shibanov Apr 6, 2023
df6abcc
update xml2js (#652)
dmitry-shibanov Apr 19, 2023
57ded4d
update @azure/storage-blob (#655)
dmitry-shibanov Apr 20, 2023
6db7460
fix `allow-prereleases` sample configuration (#615)
mayeut Apr 20, 2023
db9987b
Fix a incorrect link advanced-usage.md (#657)
siyuan0322 Apr 25, 2023
b51c97f
Add eslint rule for disallowing implicit dependencies
nikolai-laevskii May 22, 2023
f71253f
Change to @action/http-client version to the one that was used in the…
nikolai-laevskii May 22, 2023
d99bed8
Update license
nikolai-laevskii May 22, 2023
a0d867b
Change http-client dependency to one matching previous version
nikolai-laevskii May 22, 2023
e732e40
Update licenses
nikolai-laevskii May 22, 2023
9cbf792
Update configuration files
github-actions[bot] May 23, 2023
669664d
Merge branch 'tool-config-auto-update' into disallow-implicit-depende…
nikolai-laevskii May 23, 2023
0cbcb9a
Merge pull request #668 from akv-platform/disallow-implicit-dependencies
marko-zivic-93 May 23, 2023
bd6b4b6
Add warning for python 2.7 (#673)
dmitry-shibanov May 24, 2023
3f824b7
remove python 2.7 from the tests (#687)
dmitry-shibanov Jun 19, 2023
0d5da6a
Read python version from pyproject.toml (fix #542) (#669)
dariocurr Jun 28, 2023
c16c4b8
Fix pipenv jobs (#699)
dmitry-shibanov Jul 13, 2023
014d32a
Bump tough-cookie and @azure/ms-rest-js (#697)
dependabot[bot] Jul 13, 2023
ea5b57f
Bump semver from 7.3.8 to 7.5.2 (#692)
dependabot[bot] Jul 13, 2023
61a6322
Fix typos found by codespell (#650)
DimitriPapadopoulos Jul 13, 2023
f97b831
Bump word-wrap from 1.2.3 to 1.2.4 (#702)
dependabot[bot] Aug 4, 2023
65d7f2d
Add range validation for toml files (#726)
dmitry-shibanov Sep 7, 2023
3467d92
Trim python version to get rid of '\n' (#628)
FerranPares Oct 6, 2023
5f2af21
Add GraalPy support (#694)
timfel Oct 10, 2023
f6cc428
Use non-deprecated versions in examples (#724)
jeffwidman Oct 16, 2023
8635b1c
Change deprecation comment to past tense (#723)
jeffwidman Oct 16, 2023
a00ea43
add fix for graalpy ci (#741)
dmitry-shibanov Oct 16, 2023
e8111ce
Bump @babel/traverse from 7.9.0 to 7.23.2 (#743)
dependabot[bot] Oct 26, 2023
7bc6abb
advanced-usage.md: Encourage the use actions/checkout@v4 (#729)
cclauss Nov 8, 2023
8d28961
Examples now use checkout@v4 (#738)
simonw Nov 8, 2023
b64ffca
update actions/checkout to v4 (#761)
dmitry-shibanov Nov 8, 2023
0ae5836
Add example of GraalPy to docs (#773)
dmitry-shibanov Dec 5, 2023
0a5c615
Update action to node20 (#772)
dmitry-shibanov Dec 5, 2023
e9d6f99
Replace setup-python@v4 by setup-python@v5 in README (#776)
basnijholt Dec 14, 2023
2f07895
Fix broken README.md link (#793)
ukd1 Jan 18, 2024
871daa9
Fix the "Specifying multiple Python/PyPy versions" link (#782)
Jamim Jan 24, 2024
9a7ac94
Bump undici from 5.27.2 to 5.28.3 (#817)
dependabot[bot] Mar 11, 2024
10aa35a
feat: fallback to raw endpoint for manifest when rate limit is reache…
Shegox Mar 26, 2024
82c7e63
Documentation changes for avoiding rate limit issues on GHES (#835)
priya-kinthali Mar 26, 2024
4eb7dbc
Bump braces from 3.0.2 to 3.0.3 (#893)
dependabot[bot] Jun 26, 2024
a0d74c0
fix(ci): update all failing workflows (#863)
mayeut Jun 27, 2024
39cd149
Documentation update for cache (#873)
gowridurgad Jul 10, 2024
cb68456
Updated @iarna/toml version to 3.0.0 (#912)
priya-kinthali Jul 22, 2024
04c1311
Fix display of emojis in contributors doc (#899)
sciencewhiz Jul 23, 2024
036a523
Fix: Add `.zip` extension to Windows package downloads for `Expand-Ar…
priyagupta108 Aug 5, 2024
80b49d3
fix: add arch to cache key (#896)
Zxilly Aug 7, 2024
2bd53f9
Documentation update for caching poetry dependencies (#908)
gowridurgad Aug 8, 2024
f677139
Bump pyinstaller from 3.6 to 5.13.1 in /__tests__/data (#923)
aparnajyothi-y Aug 13, 2024
29a37be
initial commit (#938)
priya-kinthali Sep 6, 2024
65b48c7
Create publish-immutable-actions.yml
Jcambass Sep 10, 2024
70dcb22
Merge pull request #941 from actions/Jcambass-patch-1
Jcambass Sep 10, 2024
3226af6
Upgrade IA publish
Jcambass Sep 16, 2024
e9675cc
Merge pull request #943 from actions/Jcambass-patch-1
Jcambass Sep 26, 2024
19dfb7b
Bump default versions to latest (#905)
jeffwidman Oct 4, 2024
f4c5a11
Revise `isGhes` logic (#963)
jww3 Oct 21, 2024
9c76e71
Bump pillow from 7.2 to 10.2.0 in /__tests__/data (#956)
aparnajyothi-y Oct 21, 2024
0b93645
Enhance workflows: Add macOS 13 support, upgrade publish-action, and …
priya-kinthali Oct 24, 2024
55aad42
Update error message for no dependencies to cache (#968)
aparnajyothi-y Nov 5, 2024
3fddbee
Enhance Workflows: Add Ubuntu-24, Remove Python 3.8 (#985)
priya-kinthali Dec 19, 2024
1928ae6
Update README.md (#1009)
Jan 16, 2025
b8cf3eb
Use the new cache service: upgrade `@actions/cache` to `^4.0.0` (#1007)
priyagupta108 Jan 21, 2025
e3dfaac
Configure Dependabot settings (#1008)
HarithaVattikuti Jan 22, 2025
d0b4fc4
Bump undici from 5.28.4 to 5.28.5 (#1012)
dependabot[bot] Jan 22, 2025
feb9c6e
Bump urllib3 from 1.25.9 to 1.26.19 in /__tests__/data (#895)
dependabot[bot] Jan 27, 2025
0dc2d2c
Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 (#1014)
dependabot[bot] Jan 27, 2025
ceb20b2
Bump @actions/http-client from 2.2.1 to 2.2.3 (#1020)
dependabot[bot] Jan 27, 2025
709bfa5
Bump requests from 2.24.0 to 2.32.2 in /__tests__/data (#1019)
dependabot[bot] Jan 27, 2025
4237552
Improve Advanced Usage examples (#645)
lrq3000 Jan 27, 2025
8039c45
fix: install PyPy on Linux ARM64 (#1011)
mayeut Feb 5, 2025
6ca8e85
Bump @vercel/ncc from 0.38.1 to 0.38.3 (#1016)
dependabot[bot] Feb 18, 2025
9e62be8
Support free threaded Python versions like '3.13t' (#973)
colesbury Mar 4, 2025
6fd11e1
Bump @actions/glob from 0.4.0 to 0.5.0 (#1015)
dependabot[bot] Mar 12, 2025
19e4675
Add support for .tool-versions file in setup-python (#1043)
mahabaleshwars Mar 13, 2025
8d9ed9a
Add e2e Testing for free threaded and Bump @action/cache from 4.0.0 t…
priya-kinthali Mar 24, 2025
e348410
Remove Ubuntu 20.04 from workflows due to deprecation from 2025-04-15…
aparnajyothi-y Apr 11, 2025
6ed2c67
Fix for Candidate Not Iterable Error (#1082)
aparnajyothi-y Apr 17, 2025
5d95bc1
Bump semver and @types/semver (#1091)
dependabot[bot] Apr 22, 2025
30eafe9
Bump prettier from 2.8.8 to 3.5.3 (#1046)
dependabot[bot] Apr 22, 2025
a26af69
Bump ts-jest from 29.1.2 to 29.3.2 (#1081)
dependabot[bot] Apr 24, 2025
5db1cf9
Enhance reading from .python-version (#787)
krystof-k May 21, 2025
5fa0ee6
Bump @actions/tool-cache from 2.0.1 to 2.0.2 (#1095)
dependabot[bot] Jun 18, 2025
e9c40fb
Add support for `pip-version` (#1129)
priyagupta108 Jun 20, 2025
1264885
Enhance cache-dependency-path handling to support files outside the w…
aparnajyothi-y Jun 25, 2025
532b046
Add Architecture-Specific PATH Management for Python with --user Flag…
aparnajyothi-y Jul 3, 2025
88ffd4d
Include python version in PyPy python-version output (#1110)
cdce8p Jul 21, 2025
3c6f142
update documentation (#1156)
priya-kinthali Jul 23, 2025
36da51d
Add version parsing from Pipfile (#1067)
aradkdj Jul 24, 2025
03bb615
Bump idna from 2.9 to 3.7 in /__tests__/data (#843)
dependabot[bot] Jul 29, 2025
fbeb884
Bump form-data to fix critical vulnerabilities #182 & #183 (#1163)
aparnajyothi-y Jul 30, 2025
9322b3c
Upgrade setuptools to 78.1.1 to fix path traversal vulnerability in P…
aparnajyothi-y Aug 4, 2025
f62a0e2
Change missing cache directory error to warning (#1182)
aparnajyothi-y Aug 26, 2025
5b668cf
Bump actions/checkout from 4 to 5 (#1181)
dependabot[bot] Aug 26, 2025
65b0712
Clarify pythonLocation behavior for PyPy and GraalPy in environment v…
aparnajyothi-y Aug 26, 2025
3d1e2d2
Revert "Enhance cache-dependency-path handling to support files outsi…
aparnajyothi-y Aug 28, 2025
e797f83
Upgrade to node 24 (#1164)
salmanmkc Sep 4, 2025
4267e28
Bump urllib3 from 1.26.19 to 2.5.0 in /__tests__/data and document br…
dependabot[bot] Sep 18, 2025
2e3e4b1
Add support for pip-install input (#1201)
gowridurgad Sep 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: 3.x-dev can install a 3.y version (actions#417)
* fix: 3.x-dev can install a 3.y version

* Update README section for `-dev`
  • Loading branch information
mayeut authored Jun 8, 2022
commit d09bd5e6005b175076f227b13d9730d56e9dcfcb
29 changes: 28 additions & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Validate Python e2e
on:
on:
push:
branches:
- main
Expand Down Expand Up @@ -120,3 +120,30 @@ jobs:
- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'

setup-dev-version:
name: Setup 3.9-dev ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: setup-python 3.9-dev
id: setup-python
uses: ./
with:
python-version: '3.9-dev'

- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
shell: bash

- name: Validate version
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.9.') }}
shell: bash

- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Check out our detailed guide on using [Python with GitHub Actions](https://help.
- For every minor version of Python, expect only the latest patch to be preinstalled.
- If `3.8.1` is installed for example, and `3.8.2` is released, expect `3.8.1` to be removed and replaced by `3.8.2` in the tools cache.
- If the exact patch version doesn't matter to you, specifying just the major and minor version will get you the latest preinstalled patch version. In the previous example, the version spec `3.8` will use the `3.8.2` Python version found in the cache.
- Use `-dev` instead of a patch number (e.g., `3.11-dev`) to install the latest release of a minor version, *alpha and beta releases included*.
- Use `-dev` instead of a patch number (e.g., `3.11-dev`) to install the latest patch version release for a given minor version, *alpha and beta releases included*.
- Downloadable Python versions from GitHub Releases ([actions/python-versions](https://github.com/actions/python-versions/releases)).
- All available versions are listed in the [version-manifest.json](https://github.com/actions/python-versions/blob/main/versions-manifest.json) file.
- If there is a specific version of Python that is not available, you can open an issue here
Expand Down
11 changes: 3 additions & 8 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64183,15 +64183,10 @@ function useCpythonVersion(version, architecture) {
});
}
exports.useCpythonVersion = useCpythonVersion;
/** Convert versions like `3.8-dev` to a version like `>= 3.8.0-a0`. */
/** Convert versions like `3.8-dev` to a version like `~3.8.0-0`. */
function desugarDevVersion(versionSpec) {
if (versionSpec.endsWith('-dev')) {
const versionRoot = versionSpec.slice(0, -'-dev'.length);
return `>= ${versionRoot}.0-a0`;
}
else {
return versionSpec;
}
const devVersion = /^(\d+)\.(\d+)-dev$/;
return versionSpec.replace(devVersion, '~$1.$2.0-0');
}
/** Extracts python version from install path from hosted tool cache as described in README.md */
function versionFromPath(installDir) {
Expand Down
10 changes: 3 additions & 7 deletions src/find-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,10 @@ export async function useCpythonVersion(
return {impl: 'CPython', version: installed};
}

/** Convert versions like `3.8-dev` to a version like `>= 3.8.0-a0`. */
/** Convert versions like `3.8-dev` to a version like `~3.8.0-0`. */
function desugarDevVersion(versionSpec: string) {
if (versionSpec.endsWith('-dev')) {
const versionRoot = versionSpec.slice(0, -'-dev'.length);
return `>= ${versionRoot}.0-a0`;
} else {
return versionSpec;
}
const devVersion = /^(\d+)\.(\d+)-dev$/;
return versionSpec.replace(devVersion, '~$1.$2.0-0');
}

/** Extracts python version from install path from hosted tool cache as described in README.md */
Expand Down