I'd say "Did you sleep last night?". I feel that when someone uses "ever", this person is referring to an action that happens within a large timespan. For example, "Did you ever sleep in the class?" (It refers to your whole academic year)
Here is the explanation I found online.
"Past tense is the tense we use to express an action in the past. Present perfect tense usually connotes to occurrences in recent past or actions that have just completed."