Closed kylebgorman closed 4 weeks ago
Can I have a little more context here?
The following continuous integration should run when a PR is created or modified:
flake8
, black
(with the latter you can just test whether it would reflow lines), and maybe mypy
pytest
unit tests. Since this is going to run on CPU, probably, you want to stick to toy data sets.Steps 1-2 can be run on arbitrary versions of Python; step 3 should be run separately for each Python version supported and only should fire if steps 1-2 suceed.
In the past in "my lab" we've done this with CircleCI; here's an example of how it's configured.
Thanks. I'll handle & tap you on the shoulder if anything is needed.
In #54 I automated our tests with CircleCI continuous integration. (The ones we have so far, which just cover the edit script and CoNLL-U modules.) The way this works is as follows:
black
and flake8
and checks the pyproject.toml
metadata by trying to turn it into an uploadable package via twine
. So now if you add additional unit tests (either with unittest
or pytest
, it doesn't care) it will run those also when you generate a PR (and on every subsequent commit to that PR).
We should use standard continuous integration stuff for formatting, tests, installability. I can copy this from my other projects with minimal modifications.