1
0
mirror of https://github.com/actions/setup-python.git synced 2026-04-16 19:15:39 +02:00

Compare commits

..

9 Commits

Author SHA1 Message Date
Konrad Pabjan 28a6c1b915 Remove old parameter that is deprecated 2019-11-05 15:43:35 -05:00
Konrad Pabjan 6654142a95 Merge pull request #24 from hugovk/patch-1
Show pypy2 in example
2019-11-05 15:07:53 -05:00
Hugo van Kemenade 47b0b94f96 Merge branch 'master' into patch-1 2019-11-05 22:02:12 +02:00
Madhuri Gummalla 1396627e9d Merge pull request #25 from hugovk/patch-2
Use python-version in the example for consistency
2019-10-28 10:42:13 -04:00
Madhuri Gummalla a3e488ea33 Merge pull request #27 from dongjoon-hyun/fix_repo_url
Fix Repo URL in `package.json`
2019-10-28 10:00:31 -04:00
Dongjoon Hyun 62618cdaa5 Fix Repo URL 2019-09-24 13:03:43 -07:00
Hugo van Kemenade 31d200eb44 Fix typo
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-09-20 13:52:38 +03:00
Hugo van Kemenade ebb2329155 Use python-version in the example for consistency 2019-09-15 14:17:50 +03:00
Hugo van Kemenade 346e88b930 Show pypy2 (not pypy) in example 2019-09-15 13:46:49 +03:00
5 changed files with 8 additions and 18 deletions
+5 -5
View File
@@ -4,9 +4,9 @@
<a href="https://github.com/actions/setup-python"><img alt="GitHub Actions status" src="https://github.com/actions/setup-python/workflows/Main%20workflow/badge.svg"></a>
</p>
This action sets up a python environment for use in actions by:
This action sets up a Python environment for use in actions by:
- optionally installing a version of python and adding to PATH. Note that this action only uses versions of Python already installed in the cache. The action will fail if no matching versions are found.
- optionally installing a version of Python and adding to PATH. Note that this action only uses versions of Python already installed in the cache. The action will fail if no matching versions are found.
- registering problem matchers for error output
# Usage
@@ -31,14 +31,14 @@ jobs:
runs-on: ubuntu-16.04
strategy:
matrix:
python: [ '2.x', '3.x', 'pypy3' ]
name: Python ${{ matrix.python }} sample
python-version: [ '2.x', '3.x', 'pypy2', 'pypy3' ]
name: Python ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
python-version: ${{ matrix.python-version }}
architecture: x64
- run: python my_script.py
```
-4
View File
@@ -8,10 +8,6 @@ inputs:
architecture:
description: 'The target architecture (x86, x64) of the Python interpreter.'
default: 'x64'
# Deprecated option, do not use. Will not be supported after October 1, 2019
version:
description: 'Deprecated. Use python-version instead. Will not be supported after October 1, 2019'
deprecationMessage: 'The version property will not be supported after October 1, 2019. Use python-version instead'
runs:
using: 'node12'
main: 'lib/setup-python.js'
+1 -4
View File
@@ -21,10 +21,7 @@ const path = __importStar(require("path"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
let version = core.getInput('version');
if (!version) {
version = core.getInput('python-version');
}
let version = core.getInput('python-version');
if (version) {
const arch = core.getInput('architecture', { required: true });
yield finder.findPythonVersion(version, arch);
+1 -1
View File
@@ -12,7 +12,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/actions/ssetup-python.git"
"url": "git+https://github.com/actions/setup-python.git"
},
"keywords": [
"actions",
+1 -4
View File
@@ -4,10 +4,7 @@ import * as path from 'path';
async function run() {
try {
let version = core.getInput('version');
if (!version) {
version = core.getInput('python-version');
}
let version = core.getInput('python-version');
if (version) {
const arch: string = core.getInput('architecture', {required: true});
await finder.findPythonVersion(version, arch);