2019-11-26 07:45:32 +01:00
|
|
|
# @file python2check.yml
|
|
|
|
---
|
|
|
|
name: Python2 check
|
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2019-11-26 08:05:10 +01:00
|
|
|
python2-pywbem08:
|
|
|
|
runs-on: ubuntu-18.04
|
2019-11-26 07:45:32 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '2.7'
|
2019-11-26 08:05:10 +01:00
|
|
|
- name: Install pywbem from apt
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -qq -yy python-pywbem
|
|
|
|
- name: Set environment PYTHONPATH
|
|
|
|
run: |
|
|
|
|
export PYTHONPATH=/opt/hostedtoolcache/Python
|
2019-11-26 07:45:32 +01:00
|
|
|
- name: Launch script with --help
|
|
|
|
run: |
|
|
|
|
./check_esxi_hardware.py --help
|
2019-11-26 08:05:10 +01:00
|
|
|
|
|
|
|
# Jobs with PIP installations are currently disabled.
|
|
|
|
# python2-pywbem09:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v1
|
|
|
|
# - uses: actions/setup-python@v1
|
|
|
|
# with:
|
|
|
|
# python-version: '2.7'
|
|
|
|
# - name: Install latest pywbem from pip
|
|
|
|
# run: |
|
|
|
|
# sudo apt-get install -qq -yy python-pip
|
|
|
|
# pip install pywbem==0.9.1
|
|
|
|
# - name: Set environment PYTHONPATH
|
|
|
|
# run: |
|
|
|
|
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
|
|
|
# - name: Launch script with --help
|
|
|
|
# run: |
|
|
|
|
# ./check_esxi_hardware.py --help
|
|
|
|
# python2-pywbem012:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v1
|
|
|
|
# - uses: actions/setup-python@v1
|
|
|
|
# with:
|
|
|
|
# python-version: '2.7'
|
|
|
|
# - name: Install latest pywbem from pip
|
|
|
|
# run: |
|
|
|
|
# sudo apt-get install -qq -yy python-pip
|
|
|
|
# pip install pywbem==0.12.6
|
|
|
|
# - name: Set environment PYTHONPATH
|
|
|
|
# run: |
|
|
|
|
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
|
|
|
# - name: Launch script with --help
|
|
|
|
# run: |
|
|
|
|
# ./check_esxi_hardware.py --help
|
|
|
|
# python2-pywbem014:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v1
|
|
|
|
# - uses: actions/setup-python@v1
|
|
|
|
# with:
|
|
|
|
# python-version: '2.7'
|
|
|
|
# - name: Install latest pywbem from pip
|
|
|
|
# run: |
|
|
|
|
# sudo apt-get install -qq -yy python-pip
|
|
|
|
# pip install pywbem==0.14.6
|
|
|
|
# - name: Set environment PYTHONPATH
|
|
|
|
# run: |
|
|
|
|
# export PYTHONPATH=/opt/hostedtoolcache/Python
|
|
|
|
# - name: Launch script with --help
|
|
|
|
# run: |
|
|
|
|
# ./check_esxi_hardware.py --help
|