FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
setup-python/.github/workflows/test-python.yml at main · harupy/setup-python · GitHub
harupy
/
setup-python
Public
forked from
actions/setup-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
setup-python
/
.github
/
workflows
/
test-python.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
93 lines (80 loc) · 2.29 KB
Breadcrumbs
setup-python
/
.github
/
workflows
/
test-python.yml
Copy path
File metadata and controls
93 lines (80 loc) · 2.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name
:
Validate Python e2e
on
:
push
:
branches
:
-
main
paths-ignore
:
-
'
**.md
'
pull_request
:
paths-ignore
:
-
'
**.md
'
schedule
:
-
cron
:
30 3 * * *
jobs
:
default-version
:
name
:
Setup default version
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.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-18.04, ubuntu-20.04]
python
:
[3.5.4, 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
:
Validate 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))'
setup-pre-release-version-from-manifest
:
name
:
Setup 3.9.0-beta.4 ${{ matrix.os }}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
setup-python 3.9.0-beta.4
uses
:
./
with
:
python-version
:
'
3.9.0-beta.4
'
-
name
:
Validate version
run
:
|
$pythonVersion = (python --version)
if ("Python 3.9.0b4" -ne "$pythonVersion"){
Write-Host "The current version is $pythonVersion; expected version is 3.9.0b4"
exit 1
}
$pythonVersion
shell
:
pwsh
-
name
:
Run simple code
run
:
python -c 'import math; print(math.factorial(5))'
Back
|
FazBrowse Home
|
New Git URL