feat: give sepal_template name and set mdoule name in appbar #59
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
name: Unit testing | |
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 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: pre-commit/[email protected] | |
- 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: 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/ |