1
0
mirror of https://github.com/Napsty/check_esxi_hardware.git synced 2024-11-22 10:23:49 +01:00

Remove python2 and pywbem 0.7.0 compatibility

This commit is contained in:
Napsty 2024-10-25 14:48:52 +02:00
parent e63f9fee6a
commit 602651d3e5

View File

@ -15,18 +15,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install latest pywbem from pip - name: Install latest pywbem from pip
run: | run: |
sudo apt-get install -qq -yy python3-pip sudo apt-get install -qq -yy python3 python3-pip
pip3 install pywbem pip3 install pywbem
- name: Set environment PYTHONPATH
run: |
export PYTHONPATH=/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/site-packages:${PYTHONPATH}
- name: Verify python sys.path - name: Verify python sys.path
run: (echo "import sys"; echo "print(', '.join(sys.path))") | python run: (echo "import sys"; echo "print(', '.join(sys.path))") | python3
- name: Launch script with --help - name: Launch script with --help
run: | run: |
./check_esxi_hardware.py --help ./check_esxi_hardware.py --help