you need to file nys non resident tax return. claim the tax paid to NYS as credit on your PA resident return.