-
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
1 parent
894b5c4
commit b1e9535
Showing
2 changed files
with
20 additions
and
12 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,6 +4,10 @@ on: | |
- push | ||
- workflow_dispatch | ||
|
||
env: | ||
EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }} | ||
PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -13,12 +17,14 @@ jobs: | |
with: | ||
python-version: "3.8" | ||
- uses: pre-commit/[email protected] | ||
- name: install dependencies | ||
- 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: | ||
|
@@ -29,9 +35,11 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install sepal_ui | ||
run: python -m pip install "git+https://github.com/12rambau/sepal_ui.git@sepal_pre_release" | ||
- name: Build with sepal_ui venv | ||
run: module_venv | ||
- name: Install module venv | ||
run: | | ||
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: run tests | ||
run: python -m pytest tests/ --v -s | ||
run: 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