This is an Example Repo on How to use Pyth Network with Anchor.
Switch to devnet
anchor build
anchor deploy
anchor run test
After the test cases passes you will get a tx id which you can explore in the block explorer and check the logs to see if the data you got is right or not.
This is what you would get in the Explorer