CI: only run pylint in CI

- [ ] closes #49526 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

I'm getting this mysterious message when trying to merge #49527

![image](https://user-images.githubusercontent.com/33491632/200078564-d1344175-b9a9-41bb-b027-73e87a29f762.png)

so I've tried opening a new PR, keeping @the-lazy-learner as commit author, to see if it works here
Thanks Joris! Merging then as the relevant checks pass, and this should make for a better contributing experience

And thanks @the-lazy-learner !