I believe that is Lloyd Alexander's Westmark Trilogy (Westmark, The Kestrel, and The Beggar Queen).
From the first book's summary:
Young Theo, an orphan, has been raised in a small town, Dorning, by a printer named Anton. After the pair accepts a job from a travelling salesman they are investigated by Cabbarus' men, who declare their job illegal and proceed to destroy their press. In the ensuing scuffle and chase, Theo attacks a soldier and Anton is shot and killed.
With no one else to turn to, Theo takes to the countryside, eventually meeting up with the men who hired him and Anton for the printing job: Count Las Bombas, a con artist, and his dwarf driver/partner Musket. Theo joins up with them, rather reluctantly, and ends up participating in their money-making schemes. They eventually discover a girl named Mickle, a poor street urchin, who has a talent for throwing her voice and mimicry. The count builds a charade around Mickle, dressing her up as the Oracle Priestess and putting her on display, claiming that she can speak to the spirits of the dead.
From The Kestrel summary:
Similar to how the aristocratic powers of the time invaded France to restore the aristocracy, here a foreign country is meddling in the internal affairs of Westmark. And just as France repelled the great powers with an army led by the people and of the people, the Westmark forces run by Florian, and his lieutenants, Theo — now the eponymous Kestrel — and Justin, fight to preserve the country. But becoming a general, a tradesman in blood and death, costs the artistic and conscientious Theo a great deal. He has to cut off pieces of himself in the service of a more pressing need.
The third book sees the minister eliminated and a new government of the people established.