Preheat your oven to 375°F. Grease an 8x8-inch (or similar size) baking dish and set it aside.
Blanch the green beans. Bring a large pot of salted water to a boil. Add your green beans and cook for about 3–4 minutes, just until they’re bright green and slightly tender. Drain, rinse under cold water to stop the cooking, then pat them dry with a clean towel.
Make the creamy sauce. In a large skillet, heat the butter and a little olive oil over medium. Add the shallots and sauté for 8–10 minutes until they’re soft and golden. Stir in the garlic and cook for another 30 seconds. Sprinkle in the flour and stir for a minute to cook it out. Slowly whisk in the milk and cream until smooth. Add in the Dijon, thyme, salt, pepper, and lemon zest. Let it simmer a few minutes until it thickens slightly. If you're using cheddar, stir it in now. Remove from heat.
Assemble. Toss the green beans in the sauce until they’re coated, then transfer everything to your prepared baking dish and spread it out evenly.
Make the topping. In a small bowl, combine the sliced almonds, parmesan, olive oil, and a pinch of paprika or nutmeg if you like a little extra something.
Finish and bake. Sprinkle the topping all over the green beans. Bake uncovered for 25–30 minutes, until bubbly and golden. If you want the top extra crisp, broil it for 1–2 minutes at the end—just keep an eye on it.
Let it rest. Give it 5–10 minutes to settle and thicken before serving.