Hi,
Private Residence Relief should cover any gain arising from the disposal of your main residence, so that there is no Capital Gains Tax due.
If you move into the house you inherited and later dispose of it, you may have Capital Gains Tax to pay from the date you inherited it to the date it became your main residence. You can see guidance on Private Residence Relief here:
HS283 Private Residence Relief (2024)
Thank you.