-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the GitHub Actions workflow for the Fluent linter #17198
Conversation
This commit tweaks the Fluent linter workflow to match the other workflow files we have, so we make sure the steps have a newline between them for better readability and align names and descriptions of steps with how they are called in the other workflow files we have.
The current stable version of Python is Python 3.12, see https://www.python.org/downloads, so we should switch to that since Python 3.10 is older and only receives security updates.
…ent linter I noticed the following warning in the GitHub Actions workflow logs: `Configuration file not found: .github/linter_config.yml` The configuration file is called `fluent_linter_config.yml` instead, so this commit fixes the path so it points to the correct file. Fixes 487816b.
Thanks for doing this clean-up, since consistency is always nice! Looking at this a bit closer, I've got two questions about potential additional improvements:
|
Sadly that's not possible in this case. In that workflow we trigger on the
This puzzled me as well for a bit, but I found out that this actually has a purpose. What is does is allow this workflow to be ran manually over at https://github.com/mozilla/pdf.js/actions/workflows/fluent_linter.yml (note the "This workflow has a workflow_dispatch event trigger" banner and the "Run workflow" button). This allows running the workflow on-demand outside of a pull request, which is mostly a convenience feature. The other workflows don't have it because conceptually they make less sense to run outside of the scope of a PR (although technically they could get this too). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, thank you!
The linter is not tested with Python 3.12 🤔 I suggest to stick with 3.10 or 3.11 For me, with 3.12 tests fail to even install dependencies |
That particular build fails because it's fetching PyYAML 6.0 which doesn't have Python 3.12 wheels; see https://pypi.org/project/PyYAML/6.0/#files and see the The difference between the builds is that we |
The commit messages contain more details about the individual changes.