When using python3 - m pip install --user foo on github action runners, supposing the foo contains an executable bar.
python3 - m pip install --user foo
foo
bar
I would l