The port at Lima (Callao) isn’t really primarily a cruise port, we were there in November and I didn’t even see a cruise terminal. If you are staying in the Miraflores district before the cruise I’m sure you’d be able to find Covid testing facilities there.