Rewrite shared ci.yml for uv-managed consumer repos#13
Closed
bboe wants to merge 1 commit into
Closed
Conversation
Now that prawcore, praw, and asyncpraw are all uv projects with tox-uv environments defined in pyproject, CI is identical across repos and the differences are pure data. The workflow takes python_versions (JSON list, tested on ubuntu), min_python (also tested on macOS and Windows), and network_test (runs the live Reddit test, *praw repos only). Job names preserve the existing 'test with X on Y' shape so branch protection contexts carry over. Tests run their tox env via 'uv tool install tox --with tox-uv'; lint runs every non-py env (pre-commit, docs, style, type - whatever the repo defines); the network test runs via uv run against the locked test group.
Member
Author
|
Squashed into #12. |
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.
Stacked on #12 (retargets to main when it merges).
Re-unifies CI now that all consumer repos (prawcore, praw, asyncpraw) are uv projects: the per-repo differences collapse into three
workflow_callinputs:python_versions["3.10"–"3.13"]["3.10"–"3.13"]["3.10"–"3.14"]min_pythonnetwork_testuv tool install tox --with tox-uv→tox run --skip-pkg-install -e pyXXX(each repo's tox config owns coverage, cassette policy, etc.)tox run --skip-env py— runs whatever non-test envs the repo defines (pre-commit/docs/style/type)uv run --frozen --group test pytest …, praw/asyncpraw onlytest with X on Yshape so required-check contexts survive unchangedAfter merge + tag (v1.2.0): point prawcore (#291), praw (#2108), and asyncpraw (#324) at it, replacing their repo-local ci.yml copies.