Conversation
|
This is already available, just undocumented: you can simply define an empty script to run for In this sense, it follows the general trend I'm trying to enforce, i.e. favor project-local configuration files over arguments in workflows (to keep workflows simple, and make them more explicit). |
|
I wanted to close this PR last week but luckily I didn't because I still wanted to discuss this a bit. Could you may be expand on the following?
The reason why we'd need this feature now is when some extra-steps have to happen between the installation and testing (although I admit that this shouldn't be common). For example, now in Just curious but not relying on a reusable would also be fine. |
|
You can perfectly do it without touching the workflow. Indeed, the workflow sets up some common context: Python, Poetry, install deps, install the package. And, eventually, it runs a script with: poe testNow, [tools.poe.tasks]
fetch-data = "nnu get theory"
just-test = "pytest ..."
test = ["fetch-data", "just-test"]Check https://github.com/nat-n/poethepoet#types-of-task for the full range of options :) |
The following adds an input that switch on/off running of the tests before building the package.