diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0b72ed4..cf11282 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,12 +39,17 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "${{matrix.python-version}}" - - name: Basic cli test on Python ${{matrix.python-version}} + - name: Test on Python ${{matrix.python-version}}, ${{matrix.os-version}} run: | pip install . packet-hardware --help - sudo apt-get install ipmitool smartmontools - packet-hardware inventory -d -u localhost + sudo apt-get install ipmitool smartmontools jq + packet-hardware inventory -d -u localhost -c cache.json + cat cache.json + # Verify there is at least one ProcessorComponent + jq -e '.[] | select(.component_type == "ProcessorComponent")' cache.json + # Verify there is at least one DiskComponent + jq -e '.[] | select(.component_type == "DiskComponent")' cache.json build-and-publish-docker-image: name: build image and possibly push image to quay.io