In a large skillet over medium heat, heat the oil and sauté the onions until tender, 5 to 6 minutes. Add 3 tablespoons of the almonds, the raisins, sugar, cinnamon, salt, and pepper. Cook, stirring, until the onions are caramelized, 15 to 20 minutes. Spread the onion mixture evenly over the peeled pumpkin.