-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
305 additions
and
34 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 |
---|---|---|
@@ -1,21 +1,28 @@ | ||
name: Unit testing | ||
|
||
name: Build | ||
# To test with act: gh act --secret-file $ENV_FILE --workflows .github/workflows/unit.yml | ||
on: | ||
- push | ||
- workflow_dispatch | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }} | ||
|
||
jobs: | ||
lint: | ||
test: | ||
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] | ||
- name: install dependencies | ||
run: python -m pip install -r requirements.txt | ||
- name: build the application | ||
run: | | ||
python -m pip install pytest nbmake | ||
pytest --nbmake ui.ipynb | ||
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 nox | ||
run: python -m pip install nox | ||
- name: set entry point and run tests | ||
run: nox -s test_ui |
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ __pycache__/ | |
|
||
# C extensions | ||
*.so | ||
*nox_ui.ipynb | ||
*Untitled* | ||
|
||
# Distribution / packaging | ||
.Python | ||
|
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
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.