Closed thekester closed 2 months ago
I initially attempted to directly test the Jupyter notebook using the command:
jupyter nbconvert --to notebook --execute example_jupyter.ipynb --log-level=DEBUG
However, I encountered the following error: DeadKernelError: Kernel died
. This issue might be related to the graphical interface processes within the notebook, which is why I decided to start with a simpler test.py
file for this initial implementation.
that's a brilliant idea, good starting point to keep building upon. Thanks @thekester !
I initially attempted to directly test the Jupyter notebook using the command:
jupyter nbconvert --to notebook --execute example_jupyter.ipynb --log-level=DEBUG
However, I encountered the following error:
DeadKernelError: Kernel died
. This issue might be related to the graphical interface processes within the notebook, which is why I decided to start with a simplertest.py
file for this initial implementation.
maybe try with the example.py
file and comment out the parts that are interactive (like drawing ref shoreline or transects). That may work.
hi @thekester , are the tests being run regularly now? I don't know how Github Actions work. There was an error recently as GEE updated their version of the earthengine-api
package, it would be nice if that could be picked up automatically. Thanks.
I encountered errors running tests for example.py because the GitHub Actions workflow isn't recognizing the Earth Engine token. Despite adding the service account credentials as a secret, it still prompts for manual token entry. I'll revisit this issue soon and keep you updated.
Regarding your issue with version errors in the dependencies, I believe this could be resolved with Dependabot. I'll look into it and keep you informed.
thanks, you're the master of these Github Actions and testing, I'm learning heaps.
Hello kvos,
Just a quick update: I encountered issues running tests for example.py in the CoastSat GitHub Actions workflow due to it not recognizing the Earth Engine token, even after following the procedure to add service account credentials as a secret. I've raised the issue on the Earth Engine Community GitHub, and jdbcode is currently working on resolving the problem. Once it's fixed, I plan to continue the testing for CoastSat.
epic!
Okay so the authentication problem with earthengine is solved (thanks to @jdbcode (https://github.com/jdbcode)) i will create a new issue to provide more details on how include ee in Github Workflow in order to begin the test of coastsat in github actions.
Hello,
After reading the issue #319, I noticed a suggestion to implement GitHub Actions to run basic tests and ensure that CoastSat is functioning properly.
In response to this suggestion, I have created a GitHub Actions workflow that automatically tests the
test.py
file.This workflow includes basic tests such as:
smallest_rectangle
function in the CoastSat library to ensure that it behaves as expected.