we have discovered a serious usability problem in one of our packages that
existed for a while but did not show on the CI.
Apparently, the problem only shows up when actual users do the things.
However, our STI tests on Fedora CI run as root, hiding the issue.
I want to stop running our tests as root. Is there some idiomatic way to do that?
I was thinking about changing this:
run: PYTHON=pypy3.8 VERSION=3.8 ./venv.sh
run: PYTHON=pypy3.9 VERSION=3.9 ./venv.sh
run: adduser testuser
run: runuser testuser -c 'PYTHON=pypy3.8 VERSION=3.8 ./venv.sh'
run: runuser testuser -c 'PYTHON=pypy3.9 VERSION=3.9 ./venv.sh'
But is there some better way?