In a small skillet, toast the walnuts over medium heat until golden and fragrant, about 4-5 minutes.
In a food processor, blend the walnuts, spinach, basil, lemon juice, garlic, salt, and pepper. Stream in the olive oil. Add pesto slowly to a dish until desired coating is reached.