scientific-python / cookie

Scientific Python Library Development Guide and Cookiecutter
https://learn.scientific-python.org/development
BSD 3-Clause "New" or "Revised" License
284 stars 53 forks source link

use nox in ci test #441

Open nstarman opened 3 months ago

nstarman commented 3 months ago

I noticed the CI test doesn't use nox, which is the testing framework in this cookie.

https://github.com/scientific-python/cookie/blob/88dc8212f740783d4a74b239429c35950a73a8bd/%7B%7Bcookiecutter.project_name%7D%7D/.github/workflows/ci.yml#L73-L74

henryiii commented 3 months ago

You don’t have to use nox in the CI, CI is also a test runner. For example, you might want to install pytest-github-actions-annotate-failures only in ci.

You can use it in CI, certainly, but you don’t have to. For a template like this, it is a little bit safer if someone does delete or ignore the noxfile, while using nox will be a little safer if people customize their nox test set up.

nstarman commented 3 months ago

pytest-github-actions-annotate-failures

That's a useful tool! Didn't know about it, thanks!