-
Notifications
You must be signed in to change notification settings - Fork 634
Use GitHub releases to download python versions #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maxim-lobanov
merged 9 commits into
master
from
v-mazhuk/use-github-releases-to-download-python-versions
Apr 29, 2020
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
81b3a11
Add ability to download specific version of Python from releases
16963e0
Resolve comments
8b4ba3d
Rename function
63cdca1
Remove condition with sudo
94907dc
Remove IS_MACOS variable
9aa437b
Fix message
MaksimZhukov dc9da98
Update index.js file
42fbe15
Fix test matrix
1f58cb0
README Updates (#87)
konradpabjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Validate 'setup-python' | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
default-version: | ||
name: Setup default version | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup default python | ||
uses: ./ | ||
|
||
- name: Validate version | ||
run: python --version | ||
|
||
- name: Run simple python code | ||
run: python -c 'import math; print(math.factorial(5))' | ||
|
||
setup-versions-from-manifest: | ||
name: Setup ${{ matrix.python }} ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04] | ||
python: [3.5.3, 3.6.7, 3.7.5, 3.8.1] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup-python ${{ matrix.python }} | ||
uses: ./ | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Va 8000 lidate version | ||
run: | | ||
$pythonVersion = (python --version) | ||
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){ | ||
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}" | ||
exit 1 | ||
} | ||
$pythonVersion | ||
shell: pwsh | ||
|
||
- name: Run simple code | ||
run: python -c 'import math; print(math.factorial(5))' |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "1.2.3", | ||
"stable": true, | ||
"release_url": "https://github.com/actions/sometool/releases/tag/1.2.3-20200402.6", | ||
"files": [ | ||
{ | ||
"filename": "sometool-1.2.3-linux-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "linux", | ||
"download_url": "https://github.com/actions/sometool/releases/tag/1.2.3-20200402.6/sometool-1.2.3-linux-x64.tar.gz" | ||
} | ||
] | ||
} |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.