From 75d63f65d3fba54d40bba2bb3ec2d89c923f948d Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Fri, 13 Mar 2026 17:06:46 +0100 Subject: [PATCH 1/2] ci: add standardized micromamba-based CI workflow --- .github/workflows/ci.yaml | 32 ++++++++++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a6d1d22 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +env: + EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }} + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: mamba-org/setup-micromamba@v2 + with: + environment-file: sepal_environment.yml + cache-environment: true + + - name: Install test deps + shell: micromamba-shell {0} + run: pip install pytest nbmake ipykernel + + - name: Register kernel + shell: micromamba-shell {0} + run: python -m ipykernel install --user --name=test-kernel + + - name: Test UI notebook + shell: micromamba-shell {0} + run: pytest --nbmake ui.ipynb --nbmake-timeout=600 --nbmake-kernel=test-kernel diff --git a/.gitignore b/.gitignore index 007b942..a8fa483 100644 --- a/.gitignore +++ b/.gitignore @@ -136,4 +136,5 @@ dmypy.json # Outfiles and models test/ outputs/ -utils/model2.h5 \ No newline at end of file +utils/model2.h5 +CLAUDE.md From 823331d6f2e807d90ef1769df68f473a0820a4ee Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Thu, 19 Mar 2026 13:34:24 +0100 Subject: [PATCH 2/2] fix: use literal block for ee-api fork assertion to avoid YAML error --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a6d1d22..24b4867 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,6 +19,11 @@ jobs: environment-file: sepal_environment.yml cache-environment: true + - name: Verify ee-api fork + shell: micromamba-shell {0} + run: | + python -c "import ee; v=ee.__version__; print('ee-api:', v); assert v == '1.1.5rc0', 'Expected fork 1.1.5rc0, got ' + v" + - name: Install test deps shell: micromamba-shell {0} run: pip install pytest nbmake ipykernel