Bring a medium pot of well-salted water to a boil. Cook beans until just tender, 3 to 5 minutes. Meanwhile, prepare a bowl of ice water; when beans are done cooking, transfer them to ice water with a slotted spoon. Drain. Slice in half. Add pasta to cooking water and cook according to package directions. Drain and set aside.
Meanwhile, heat oil in a large skillet over medium-high heat. Add shallots and cook until golden and crispy, about 2 minutes. Add beans, ravioli, and almonds and toss to coat. Season with salt, pepper, and lemon juice.