diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 01049192..12e67c36 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -18,8 +18,12 @@ jobs: set -e sudo wget https://github.com/jmespath/jp/releases/download/0.2.1/jp-linux-amd64 -O /usr/local/bin/jp sudo chmod +x /usr/local/bin/jp - pip install --user zschema - pip install -r requirements.txt + apt update + apt install -y python2 + curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py + python2 get-pip.py + pip2 install --user zschema + pip2 install -r requirements.txt - name: Run tests env: diff --git a/integration_tests/test.sh b/integration_tests/test.sh index 81012ae0..85591023 100755 --- a/integration_tests/test.sh +++ b/integration_tests/test.sh @@ -78,7 +78,7 @@ for protocol in $(ls $ZGRAB_OUTPUT); do echo "Validating $target [{(" cat $target echo ")}]:" - if ! python -m zschema validate zgrab2 $target --path . --module zgrab2_schemas.zgrab2 ; then + if ! python2 -m zschema validate zgrab2 $target --path . --module zgrab2_schemas.zgrab2 ; then echo "Schema validation failed for $protocol/$outfile" err="schema failure@$protocol/$outfile" if [[ $status -eq 0 ]]; then