python-certifi: add github runtime test

This loads the module, which should return the path of the CA bundle
and verifies that the file exists.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
Eneas U de Queiroz 2023-07-27 16:51:39 -03:00
parent 0309bfd56f
commit 219edcfa31
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
*-src)
;;
python3-certifi)
BUNDLE=$(python3 -m certifi) || {
echo "Failed to run the certfi module script. Exit status=$?." >&2
echo "Output='$BUNDLE'" >&2
exit 1
}
ls -l "$BUNDLE"
;;
*)
echo "Unexpected package '$1'" >&2
exit 1
;;
esac