The lint step already checks for formatting errors. By running the format step before lint step, the source is being properly formatted. So the lint step is unable to find the formatting problems (just formatted in the previous step).
I was confused, when locally nox -s lint failed with formatting errors, but github actions didn't!
Fun fact: this repo's workflow file has it correct. But the template workflow file does not.
The lint step already checks for formatting errors. By running the format step before lint step, the source is being properly formatted. So the lint step is unable to find the formatting problems (just formatted in the previous step).
I was confused, when locally nox -s lint failed with formatting errors, but github actions didn't! Fun fact: this repo's workflow file has it correct. But the template workflow file does not.