Repository navigation
How to test on different operating systems? #813
Replies: 6 comments 3 replies
|
There's a NetBSD github action available (running inside a VM inside Ubuntu I think). An example workflow which includes installing python and a python module (from pkgsrc) are here. |
|
An example of running multiple architecture, OS, and Python versions from Pyramid: https://github.com/Pylons/pyramid/blob/main/.github/workflows/ci-tests.yml#L47 Another example from plone.restapi, for running multiple OS, Python, and Plone versions: https://github.com/plone/plone.restapi/blob/main/.github/workflows/test-matrix.yml#L22-L33 Unfortunately GitHub doesn't provide direct support of NetBSD, but the suggested example from @0-wiz-0 should work. For all supported OSs and architectures, see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories. |
|
In the Fedora build, we run: python3 -m pytest src/icalendar/tests |
|
I can't speak for other OS but most bespoke Linux distros probably have their own Dockerfile so it wouldn't be too hard to write a matrix which runs across a test set. I guess the most difficult might be adjusting to the different package managers, but it also depends whether the tests would use native packages vs. just One option might be to make it a dispatch workflow that can be run on-demand (e.g. before cutting a release), maybe having an option which OS to target. That way it would be OK if it isn't as efficient, since it wouldn't need to run every single commit / PR. |
|
Conda is another packager. They have this starting points for Linux, Windows, Mac: https://github.com/conda-forge/staged-recipes |
|
WebAssembly is another test environment: #1073 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently, we test
icalendaron Ubuntu with a test matrix of different Python versions.However, I want to keep it up-to-date and also be able to introduce breaking changes in the future. One of them was moving to
zoneinfowith version 6.These big changes lead to test failures in OS package distributions:
By enabling tests for other Operating Systems, we can make sure that the updates can be shipped fast.
Questions:
icalendarworks on Windows and MacOS seems important.Your input is much appreciated, especially if you are a package distributor.
All reactions