Debugging CI/CD failure

This commit is contained in:
Miroslav Štampar 2026-06-28 10:34:54 +02:00
parent 60403f80df
commit ca755467de
3 changed files with 3 additions and 14 deletions

View file

@ -42,18 +42,7 @@ jobs:
run: |
set +e
python -m pip install pyflakes
python -c "
import subprocess, sys
files = subprocess.check_output(['git', 'ls-files', '*.py']).decode().splitlines()
files = [f for f in files if not f.startswith('thirdparty/')]
p = subprocess.Popen([sys.executable, '-m', 'pyflakes'] + files, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
out, _ = p.communicate()
lines = [l for l in out.decode().splitlines() if ' redefines ' not in l]
if lines:
print('\n'.join(lines))
sys.exit(1)
print('pyflakes: clean')
"
python -c 'import subprocess, sys; files = subprocess.check_output(["git", "ls-files", "*.py"]).decode().splitlines(); files = [f for f in files if not f.startswith("thirdparty/")]; p = subprocess.Popen([sys.executable, "-m", "pyflakes"] + files, stdout=subprocess.PIPE, stderr=subprocess.STDOUT); out, _ = p.communicate(); lines = [l for l in out.decode().splitlines() if " redefines " not in l]; sys.exit(1) if lines else None; print("pyflakes: clean")'
- name: Basic import test
run: python -c "import sqlmap; import sqlmapapi"