Skip to content

Commit

Permalink
build: setup python2
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed May 20, 2024
1 parent b8e3273 commit 3da7a8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3da7a8b

Please sign in to comment.