Preheat oven to 350 Fahrenheit; lightly grease a 1-qt. baking dish.
Heat the oil in a large skillet over medium-high heat and saute the onions until soft. Add garlic and red pepper and cook a few more minutes, then reduce the heat to medium-low and add spinach. Cook, stirring, until spinach is wilted.
Blend together the tofu, yeast, lemon juice, basil, salt and pepper until smooth, in either a blender or food processor. Add artichokes and spinach mixture and pulse about 15 times to chop the veggies.
Transfer the mixture to the prepared baking dish and bake for 30 minutes, or until lightly browned on top. Let cool a few minutes, then serve with bread or chips.