Skip to content
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

Cannot run tests on macOS #14

Open
madwort opened this issue Apr 26, 2021 · 2 comments
Open

Cannot run tests on macOS #14

madwort opened this issue Apr 26, 2021 · 2 comments

Comments

@madwort
Copy link
Contributor

madwort commented Apr 26, 2021

Not really a massive issue, but I'm not sure I can install RPi.GPIO on macOS, so I can't run the tests - might be possible to abstract that out so that I could work on the application code (like input error handling) without having to actually be on a RPi...

@sandreae
Copy link
Collaborator

Sorry I'm only just getting back to you on these issues, thanks for raising them 👍

Yeh, seems like RPI.GPIO only compiles on Linux systems. None of the GPIO functionality is used in the tests, so for example, things run fine for me on Ubuntu 20.04. I don't know of a good way to skip certain dependencies in requirements.txt depending on the environment. Maybe there is one though? A relatively simple solution would be to run the tests in a Docker container.

@madwort
Copy link
Contributor Author

madwort commented Oct 6, 2021

ah cool - as GPIO is not needed for the tests maybe the simplest way is a separate requirements-macos-test.txt file? seems like you could make it more sophisticated with conditional includes and/or abstracting out common requirements & then including them - but for these purposes I would probably just cut-and-paste...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants