8000 Use GitHub releases to download python versions by MaksimZhukov · Pull Request #85 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

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
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Remove condition with sudo
  • Loading branch information
MaksimZhukov committed Apr 28, 2020
commit 63cdca158a071d97d29426528807be0cf1bfb8a1
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
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]
python: [3.5.4, 3.6.6, 3.7.4, 3.8.1]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
5 changes: 1 addition & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2623,11 +2623,8 @@ function installPython(workingDirectory) {
if (IS_WINDOWS) {
yield exec.exec('powershell', ['./setup.ps1'], options);
}
else if (IS_MACOS) {
yield exec.exec('bash', ['./setup.sh'], options);
}
else {
yield exec.exec('sudo', ['-n', 'bash', './setup.sh'], options);
yield exec.exec('bash', ['./setup.sh'], options);
}
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/install-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ async function installPython(workingDirectory: string) {

if (IS_WINDOWS) {
await exec.exec('powershell', ['./setup.ps1'], options);
} else if (IS_MACOS) {
await exec.exec('bash', ['./setup.sh'], options);
} else {
await exec.exec('sudo', ['-n', 'bash', './setup.sh'], options);
await exec.exec('bash', ['./setup.sh'], options);
}
}

Expand Down
0