refactor: adapt to planet_model #55
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 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- uses: pre-commit/[email protected] | |
- name: install dependencies | |
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 | |
- 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 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: run tests | |
run: python -m pytest tests/ --v -s |