Skip to content
Open

Dev #617

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: poetry run python -m pip install pip-audit

- name: Vulnerability audit
run: poetry run pip-audit
run: poetry run pip-audit --skip-editable

- name: Geemap folium import guard
run: |
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/draft-pdf.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/main_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ jobs:
strategy:
matrix:
test_file:
- tests/test_module_sanity.py
- tests/test_qc.py
- tests/test_obstypes.py
- tests/test_gf.py
Expand Down
38 changes: 25 additions & 13 deletions deployment/develop_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ poetry update
poetry show
poetry build
#poetry install --all-extras --no-root
poetry install --all-extras
poetry install --all-extras --no-cache
echo ""


Expand Down Expand Up @@ -75,24 +75,36 @@ BLACK_LOG=${DEPLOY_DIR}/black_log.log
rm -f ${BLACK_LOG} #clean start
touch ${BLACK_LOG}
cd $REPODIR
poetry run black . 2>&1 | tee -a ${BLACK_LOG}
poetry run black src/metobs_toolkit 2>&1 | tee -a ${BLACK_LOG}
# poetry run black . 2>&1 | tee -a ${BLACK_LOG}
echo ""


#3. Run tests
#3. Run module sanity checks (embedded __main__ tests)
echo "========================================="
echo "Step 3: Running test suite..."
echo "Step 3: Running module sanity checks..."
echo "========================================="
SANITY_LOG=${DEPLOY_DIR}/pytest_sanity_log.log
rm -f ${SANITY_LOG} #clean start
touch ${SANITY_LOG}
cd ${REPODIR} #Run from repo root
poetry run pytest tests/test_module_sanity.py -v 2>&1 | tee -a ${SANITY_LOG}
echo ""

#4. Run tests
echo "========================================="
echo "Step 4: Running test suite..."
echo "========================================="
TEST_LOG=${DEPLOY_DIR}/pytest_tests_log.log
rm -f ${TEST_LOG} #clean start
touch ${TEST_LOG}
cd ${REPODIR}/tests
poetry run pytest . --mpl --mpl-generate-summary=html 2>&1 | tee -a ${TEST_LOG}
cd ${REPODIR} #Run from repo root
poetry run pytest tests/. --ignore=tests/test_module_sanity.py --mpl --mpl-generate-summary=html 2>&1 | tee -a ${TEST_LOG}
echo ""

#4. Run notebook example as tests
#5. Run notebook example as tests
echo "========================================="
echo "Step 4: Running notebook examples as tests..."
echo "Step 5: Running notebook examples as tests..."
echo "========================================="
NB_LOG=${DEPLOY_DIR}/pytest_on_doc_notebooks_log.log
rm -f ${NB_LOG} #clean start
Expand All @@ -104,9 +116,9 @@ poetry run pytest . --nbval-lax 2>&1 | tee -a ${NB_LOG}
echo ""


#5. Build documentation
#6. Build documentation
echo "========================================="
echo "Step 5: Building documentation..."
echo "Step 6: Building documentation..."
echo "========================================="
DOCS_LOG=${DEPLOY_DIR}/build_doc_log.log
rm -f ${DOCS_LOG} #clean start
Expand All @@ -117,15 +129,15 @@ poetry run ./build_doc 2>&1 | tee -a ${DOCS_LOG}
echo ""


#6. Create a big log file
#7. Create a big log file
echo "========================================="
echo "Step 6: Creating combined log file..."
echo "Step 7: Creating combined log file..."
echo "========================================="
BIG_LOG=${DEPLOY_DIR}/dev_pipeline_full_log.log
rm -f ${BIG_LOG} # clean start
touch ${BIG_LOG}

cat ${BLACK_LOG} ${TEST_LOG} ${NB_LOG} ${DOCS_LOG} >> ${BIG_LOG}
cat ${BLACK_LOG} ${SANITY_LOG} ${TEST_LOG} ${NB_LOG} ${DOCS_LOG} >> ${BIG_LOG}


echo "Opening logs in default text viewer..."
Expand Down
314 changes: 182 additions & 132 deletions docs/examples/filling_example.ipynb

Large diffs are not rendered by default.

Loading
Loading