FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
setup-python-amazon-linux/.github/workflows/test.yml at patch-1 · Goondrious/setup-python-amazon-linux · GitHub
Goondrious
/
setup-python-amazon-linux
Public
forked from
kishaningithub/setup-python-amazon-linux
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-amazon-linux
/
.github
/
workflows
/
test.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
121 lines (98 loc) · 3.31 KB
Breadcrumbs
setup-python-amazon-linux
/
.github
/
workflows
/
test.yml
Copy path
File metadata and controls
121 lines (98 loc) · 3.31 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name
:
Test
on
:
push
:
branches
:
[main]
pull_request
:
branches
:
[main]
jobs
:
test_python_installation
:
strategy
:
fail-fast
:
false
matrix
:
#
This tests the amazon linux versions receiving standard support
#
Refer - https://endoflife.date/amazon-linux
amazon-linux-version
:
[ 2, 2023 ]
#
This tests the lowest supported python version and the latest stable python version
#
Refer - https://devguide.python.org/versions/#status-of-python-versions
python-version
:
[ 3.8.18, 3.12.0 ]
cache
:
[ true, false ]
runs-on
:
ubuntu-latest
container
:
amazonlinux:${{ matrix.amazon-linux-version }}
steps
:
-
name
:
Setup runner
run
:
|
yum install -y git sudo tar gzip which
-
name
:
Checkout
run
:
|
git clone --depth 1 -b "${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}" "https://github.com/${GITHUB_REPOSITORY}.git" .
-
name
:
Install python
uses
:
./
with
:
python-version
:
${{ matrix.python-version }}
cache
:
${{ matrix.cache }}
-
name
:
Test installation
run
:
|
set -x
which python3
which python
python3 --version
python --version
python3 --version 2>&1 | grep -F "${{ matrix.python-version }}"
test "$(python3 -m pip --version)" = "$(pip3 --version)"
python --version 2>&1 | grep -F "${{ matrix.python-version }}"
test "$(python3 -m pip --version)" = "$(pip --version)"
test_pip_installs
:
strategy
:
fail-fast
:
false
matrix
:
amazon-linux-version
:
[ 2, 2023 ]
python-version
:
[ "3.8", "3.9", "3.10", "3.11" , "3.12" ]
cache
:
[ true, false ]
runs-on
:
ubuntu-latest
container
:
amazonlinux:${{ matrix.amazon-linux-version }}
steps
:
-
name
:
Setup runner
run
:
|
yum install -y git sudo tar gzip which
-
name
:
Checkout
run
:
|
git clone --depth 1 -b "${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}" "https://github.com/${GITHUB_REPOSITORY}.git" .
-
name
:
Install python
uses
:
./
with
:
python-version
:
"
${{ matrix.python-version }}
"
cache
:
${{ matrix.cache }}
-
name
:
Test installation
run
:
|
set -x
pip install requests
pip3 install s4cmd
pip3 install boto3
test_python_version_file
:
runs-on
:
ubuntu-latest
container
:
amazonlinux:2023
steps
:
-
name
:
Setup runner
run
:
|
yum install -y git sudo tar gzip which
-
name
:
Checkout
run
:
|
git clone --depth 1 -b "${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}" "https://github.com/${GITHUB_REPOSITORY}.git" .
-
name
:
Create python version file
run
:
|
echo '3.11.5' > .python-version
-
name
:
Install python
uses
:
./
with
:
python-version-file
:
"
.python-version
"
-
name
:
Test installation
run
:
|
set -x
which python3
which python
python3 --version
python --version
python3 --version 2>&1 | grep -F "3.11.5"
test "$(python3 -m pip --version)" = "$(pip3 --version)"
python --version 2>&1 | grep -F "3.11.5"
test "$(python3 -m pip --version)" = "$(pip --version)"
Back
|
FazBrowse Home
|
New Git URL