-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,582 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,45 @@ on: | |
- push | ||
- workflow_dispatch | ||
|
||
env: | ||
EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }} | ||
PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- uses: pre-commit/[email protected].0 | ||
- name: install dependencies | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected].1 | ||
- name: Install module venv | ||
run: | | ||
python -m pip install --find-links=https://girder.github.io/large_image_wheels GDAL | ||
python -m pip install earthengine-api | ||
python -m pip install -r requirements.txt | ||
python -m pip install pytest nbmake | ||
python -m pip install "git+https://github.com/12rambau/sepal_ui.git@sepal_pre_release" | ||
module_venv --venv_prefix venv | ||
- name: Activate venv | ||
run: source ~/module-venv/clip-time-series/bin/activate | ||
- name: install nbmake | ||
run: python -m pip install pytest nbmake | ||
- name: build the application | ||
run: pytest --nbmake ui.ipynb | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install module venv | ||
run: | | ||
python -m pip install "git+https://github.com/12rambau/sepal_ui.git@sepal_pre_release" | ||
python -m pip install pytest | ||
module_venv --venv_prefix venv | ||
- name: Activate venv and run tests | ||
run: | | ||
source ~/module-venv/clip-time-series/bin/activate | ||
python -m pip install pytest | ||
python -m pytest test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from sepal_ui import model | ||
from traitlets import Any | ||
from traitlets import Any, Bool, Unicode | ||
|
||
|
||
class ExportModel(model.Model): | ||
|
||
vue = Any(None).tag(sync=True) | ||
overwrite = Bool(True).tag(sync=True) | ||
enhance_method = Unicode("min_max").tag(sync=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.