Modernise CI: Python versions, action versions, Dependabot - #47
Merged
Merged
Conversation
CI tested 3.11, which nothing runs, and not 3.14, the newest release. It now tests 3.12 (Ubuntu 24.04, the deployed version) and 3.14, and the declared minimum moves to 3.12. Lint and type check run once in their own job instead of per Python version. Actions move to v7, and a new push cancels the run for the previous one. Dependabot proposes weekly pip and Actions updates, except yt-dlp, which the server updates daily, and PyNaCl 1.6+, which discord.py 2.7.1 does not allow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #46
Python versions
CI tested 3.11 and 3.12. Nothing runs 3.11, and the newest Python was not tested at all. It now tests:
The declared minimum (README,
mypy.ini,ruff.toml) moves from 3.11 to 3.12 to match.Workflow
ruffandmypyrun once, in alintjob, instead of once per Python version.actions/checkoutv4 → v7 andactions/setup-pythonv5 → v7. The only breaking change in between is setup-python dropping thepip-installinput, which this workflow never used.Dependabot
.github/dependabot.ymlproposes weekly updates for pip (requirements.txt,requirements-dev.txt) and for GitHub Actions, the latter grouped into one PR. Two deliberate exceptions, each explained in the file:yt-dlp: unpinned on purpose and updated daily on the server bydeploy/update-ytdlp.sh.PyNaCl1.6+: discord.py 2.7.1 caps it below 1.6.Dependabot alerts and security updates are enabled in the repository settings as well.
Testing
The checks on this PR are the test: the new
lintjob, andpyteston 3.12 and 3.14.