Skip to content

Commit

Permalink
Export test data to file and validate it
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier FAURAX <olivier.faurax@eu.equinix.com>
  • Loading branch information
ofaurax committed May 16, 2024
1 parent 92486ce commit 0c64908
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c64908

Please sign in to comment.