update linux runners to ubuntu-22 or ubuntu-latest, but run test-mem
job on ubuntu-20 for it for some reason fails on ubuntu-22
bump up CI actions to be compatible with node 20, namely bump up to
actions/checkout@v4, actions/setup-python@v5, download-artifact@v4, upload-artifact@v4