-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to specify the python, and OS, combinations one wants to test #210
Comments
I have used a similar tox plugin: https://pypi.org/project/tox-gh-actions/ |
i have a working matrix based on https://gist.github.com/1letter/29043a3aaf5249b8fd0aaed3fff31b84 minimal changes in here is the workflow in action: https://github.com/1letter/my.addon or here https://github.com/collective/collective.z3cform.norobots/actions/runs/8993006983 or https://github.com/collective/collective.outputfilters.tinymceaccordion/actions/runs/9007051232 |
@1letter nice! 🤩 beware: long rant I see, though, that the workflow hardcodes the python versions and the plone versions. For that to work for plone core packages (but also generally for add-ons), we should allow that to be configured via Though, as a first step, having a hardcoded version would be enough, or actually, we could split the
As the supported python versions depend on what Plone upstream supports anyway, so we don't need to define that on a per-package basis. Though, that would be only for CI, locally one still wants to test against all versions too, or? 🤔 I mean, as soon as we have all versions in CI, testing only one version locally might be enough... Though (again 😅 ) for debugging purposes, would be nice to have all versions locally as well ✨ Sorry for the rant 🙇🏾 I created a smaller PR that, for now only allows multiple python versions. |
@gforcada only for gitlab-ci i use this matrix for tests, all is configured in the
|
tox
is known and widely used to simplify the task of running a distribution test suite across different python versions.With GitHub Actions, one can run those
tox
tasks in different OSes.For now,
plone/meta
has been enforcing to only run onubuntu-latest
withpython-3.11
🤷🏾Being new in
tox
I'm still not comfortable/capable of pulling this off, I haven't done my research on it 😓 🤓Thinking outside of Plone core, we would add yet another axis on the matrix: against which Plone version we want the tests to run.
Small steps
A 3-way matrix (OS / python / plone) seems quite complicated, so let's start small, and allow first to specify the python versions one wants to test.
There is a promising plugin for
tox
that seems to fit the bill: https://pypi.org/project/tox-gh/ with GitLab we should see what we do.Any takers? 👐🏾 😄
The text was updated successfully, but these errors were encountered: