Skip to content

Commit 489da3d

Browse files
committed
Github actions: pywbem
Github actions: fix names Github actions: Other fixes Github actions: Other fixes Github actions: Debugging Github actions: Debugging and remove pywbem 0.9 from pip install Github actions: Add PYTHONPATH env Github actions: Debugging Github actions: Debugging Github actions: Debugging Github actions: PIP modules dont seem to work Github actions: PIP modules dont seem to work Github actions: PIP modules dont seem to work
1 parent bcf607b commit 489da3d

File tree

2 files changed

+165
-10
lines changed

2 files changed

+165
-10
lines changed

.github/workflows/python2check.yml

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,72 @@ name: Python2 check
66
on: [push, pull_request]
77

88
jobs:
9-
python2-help:
10-
runs-on: ubuntu-latest
9+
python2-pywbem08:
10+
runs-on: ubuntu-18.04
1111
steps:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-python@v1
1414
with:
1515
python-version: '2.7'
16+
- name: Install pywbem from apt
17+
run: |
18+
sudo apt-get install -qq -yy python-pywbem
19+
- name: Set environment PYTHONPATH
20+
run: |
21+
export PYTHONPATH=/opt/hostedtoolcache/Python
1622
- name: Launch script with --help
1723
run: |
1824
./check_esxi_hardware.py --help
25+
26+
# Jobs with PIP installations are currently disabled.
27+
# python2-pywbem09:
28+
# runs-on: ubuntu-latest
29+
# steps:
30+
# - uses: actions/checkout@v1
31+
# - uses: actions/setup-python@v1
32+
# with:
33+
# python-version: '2.7'
34+
# - name: Install latest pywbem from pip
35+
# run: |
36+
# sudo apt-get install -qq -yy python-pip
37+
# pip install pywbem==0.9.1
38+
# - name: Set environment PYTHONPATH
39+
# run: |
40+
# export PYTHONPATH=/opt/hostedtoolcache/Python
41+
# - name: Launch script with --help
42+
# run: |
43+
# ./check_esxi_hardware.py --help
44+
# python2-pywbem012:
45+
# runs-on: ubuntu-latest
46+
# steps:
47+
# - uses: actions/checkout@v1
48+
# - uses: actions/setup-python@v1
49+
# with:
50+
# python-version: '2.7'
51+
# - name: Install latest pywbem from pip
52+
# run: |
53+
# sudo apt-get install -qq -yy python-pip
54+
# pip install pywbem==0.12.6
55+
# - name: Set environment PYTHONPATH
56+
# run: |
57+
# export PYTHONPATH=/opt/hostedtoolcache/Python
58+
# - name: Launch script with --help
59+
# run: |
60+
# ./check_esxi_hardware.py --help
61+
# python2-pywbem014:
62+
# runs-on: ubuntu-latest
63+
# steps:
64+
# - uses: actions/checkout@v1
65+
# - uses: actions/setup-python@v1
66+
# with:
67+
# python-version: '2.7'
68+
# - name: Install latest pywbem from pip
69+
# run: |
70+
# sudo apt-get install -qq -yy python-pip
71+
# pip install pywbem==0.14.6
72+
# - name: Set environment PYTHONPATH
73+
# run: |
74+
# export PYTHONPATH=/opt/hostedtoolcache/Python
75+
# - name: Launch script with --help
76+
# run: |
77+
# ./check_esxi_hardware.py --help

.github/workflows/python3check.yml

Lines changed: 104 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,109 @@ name: Python3 check
66
on: [push, pull_request]
77

88
jobs:
9-
python3-help:
9+
simple-output:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-python@v1
14-
with:
15-
python-version: '3.x'
16-
- name: Launch script with --help
17-
run: |
18-
./check_esxi_hardware.py --help
12+
- name: Simple hello world
13+
run: echo "Hello World"
14+
# python3-pywbem-latest:
15+
# runs-on: ubuntu-latest
16+
# steps:
17+
# - uses: actions/checkout@v1
18+
# - uses: actions/setup-python@v1
19+
# with:
20+
# python-version: '3.8'
21+
# - name: Install latest pywbem from pip
22+
# run: |
23+
# sudo apt-get install -qq -yy python3-pip
24+
# pip3 install pywbem
25+
# - name: Set environment PYTHONPATH
26+
# run: |
27+
# export PYTHONPATH=/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/site-packages
28+
# - name: Verify python sys.path
29+
# run: (echo "import sys"; echo "print(', '.join(sys.path))") | python
30+
# - name: Launch script with --help
31+
# run: |
32+
# ./check_esxi_hardware.py --help
33+
# python3-pywbem-08:
34+
# runs-on: ubuntu-latest
35+
# steps:
36+
# - uses: actions/checkout@v1
37+
# - uses: actions/setup-python@v1
38+
# with:
39+
# python-version: '3.x'
40+
# - name: Install latest pywbem from pip
41+
# run: |
42+
# sudo apt-get install -qq -yy python3-pip
43+
# pip3 install pywbem==0.8.4
44+
# - name: Set environment PYTHONPATH
45+
# run: |
46+
# export PYTHONPATH=/opt/hostedtoolcache/Python
47+
# - name: Launch script with --help
48+
# run: |
49+
# ./check_esxi_hardware.py --help
50+
# python3-pywbem-012:
51+
# runs-on: ubuntu-latest
52+
# steps:
53+
# - uses: actions/checkout@v1
54+
# - uses: actions/setup-python@v1
55+
# with:
56+
# python-version: '3.x'
57+
# - name: Install latest pywbem from pip
58+
# run: |
59+
# sudo apt-get install -qq -yy python3-pip
60+
# pip3 install pywbem==0.12.6
61+
# - name: Set environment PYTHONPATH
62+
# run: |
63+
# export PYTHONPATH=/opt/hostedtoolcache/Python
64+
# - name: Launch script with --help
65+
# run: |
66+
# ./check_esxi_hardware.py --help
67+
# python3-pywbem-013:
68+
# runs-on: ubuntu-latest
69+
# steps:
70+
# - uses: actions/checkout@v1
71+
# - uses: actions/setup-python@v1
72+
# with:
73+
# python-version: '3.x'
74+
# - name: Install latest pywbem from pip
75+
# run: |
76+
# sudo apt-get install -qq -yy python3-pip
77+
# pip3 install pywbem==0.13.1
78+
# - name: Set environment PYTHONPATH
79+
# run: |
80+
# export PYTHONPATH=/opt/hostedtoolcache/Python
81+
# - name: Launch script with --help
82+
# run: |
83+
# ./check_esxi_hardware.py --help
84+
# python3-pywbem-014:
85+
# runs-on: ubuntu-latest
86+
# steps:
87+
# - uses: actions/checkout@v1
88+
# - uses: actions/setup-python@v1
89+
# with:
90+
# python-version: '3.x'
91+
# - name: Install latest pywbem from pip
92+
# run: |
93+
# sudo apt-get install -qq -yy python3-pip
94+
# pip3 install pywbem==0.14.6
95+
# - name: Set environment PYTHONPATH
96+
# run: |
97+
# export PYTHONPATH=/opt/hostedtoolcache/Python
98+
# - name: Launch script with --help
99+
# run: |
100+
# ./check_esxi_hardware.py --help
101+
# find-pywbem:
102+
# runs-on: ubuntu-latest
103+
# steps:
104+
# - uses: actions/checkout@v1
105+
# - uses: actions/setup-python@v1
106+
# with:
107+
# python-version: '3.x'
108+
# - name: Install latest pywbem from pip
109+
# run: |
110+
# sudo apt-get install -qq -yy python-pip
111+
# pip install pywbem
112+
# - name: Find pywbem module
113+
# run: |
114+
# find / -name 'pywbem-*'

0 commit comments

Comments
 (0)