Repository navigation
Make tox run the tests in generated packages - #716
Open
simonvanlierde wants to merge 2 commits into
Open
simonvanlierde wants to merge 2 commits into
simonvanlierde wants to merge 2 commits into
Conversation
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.
Checklist before requesting a review
toxruns the tests)Type of change
Please delete options that are not relevant.
List of related issues or pull requests**
Refs:
CPY001failure intest_ruff_check)Describe the changes made in this pull request
Hi all,
toxin a generated package passed without running any tests. This fixes that, as discussed in #714.template/pyproject.toml.jinjawas spelled[tool.box.testenv], so tox ignored itsdescriptionandcommands. I moved both keys into[tool.tox.env_run_base], next todependency_groups.test_toxonly checked for "congratulations :)", which tox prints whether or not pytest ran. It now also checks for== 3 passed in, the same checktest_pytestuses. Onmain's template that new check fails; tox's output there has no pytest lines.CI will fail
test_ruff_checkuntil #713 is in; that failure is onmaintoo.Tests: the full template suite passes (12 passed) on Python 3.12, 3.13 and 3.14 in a Linux container, installed and run as in
tests.yml, with #713'sCPY001ignore applied. I couldn't run the macOS and Windows jobs locally.Best,
Simon
Instructions to review the pull request
Install the requirements
Create a new package using the template
Create a local git repo to push to GitHub to trigger CI actions
Then run
tox -e py312intest_package: the output now has pytest's3 passedline beforecongratulations :).