One-body reduced density-matrix functional theory in finite basis sets at elevated temperatures