2019-11-26 07:45:32 +01:00
|
|
|
# @file python3check.yml
|
|
|
|
---
|
|
|
|
name: Python3 check
|
|
|
|
|
|
|
|
# Trigger the workflow on push or pull request
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-10-25 14:42:19 +02:00
|
|
|
python3-pywbem-latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install latest pywbem from pip
|
|
|
|
run: |
|
2024-10-25 14:48:52 +02:00
|
|
|
sudo apt-get install -qq -yy python3 python3-pip
|
2024-10-25 14:42:19 +02:00
|
|
|
pip3 install pywbem
|
|
|
|
- name: Verify python sys.path
|
2024-10-25 14:48:52 +02:00
|
|
|
run: (echo "import sys"; echo "print(', '.join(sys.path))") | python3
|
2024-10-25 14:42:19 +02:00
|
|
|
- name: Launch script with --help
|
|
|
|
run: |
|
|
|
|
./check_esxi_hardware.py --help
|
2024-10-25 15:40:00 +02:00
|
|
|
python3-pywbem-0_8_1:
|
2024-10-25 15:38:15 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install latest pywbem from pip
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -qq -yy python3 python3-pip
|
2024-10-25 15:40:00 +02:00
|
|
|
pip3 install pywbem==0.8.1
|
2024-10-25 15:38:15 +02:00
|
|
|
- name: Verify python sys.path
|
|
|
|
run: (echo "import sys"; echo "print(', '.join(sys.path))") | python3
|
|
|
|
- name: Launch script with --help
|
|
|
|
run: |
|
|
|
|
./check_esxi_hardware.py --help
|