Pulse the nuts, lemon juice, and garlic in the food processor until they’re finely chopped.
Add the basil and spinach and fresh rosemary and pulse again.
Next, drizzle in the olive oil with the food processor blade still running.
Add grated cheeses and process briefly until combined.