When travelling to the UK from another country, you will be required to take an antigen or PCR test on your arrival depending upon your vaccination status. It is a mandatory legal requirement to take these tests. More information can be found at https://www.gov.uk/coronavirus.
We would always recommend that you check with your airlines/relevant Government authorities for the type of test which they require.