Skip to content

Commit

Permalink
Demo tests: removed curr folder duplication for more maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-echeverria committed Dec 14, 2024
1 parent 552682d commit 8875517
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
29 changes: 15 additions & 14 deletions demo/scenarios/test.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/usr/bin/env bash
CURR_FOLDER="./demo/scenarios"

# Remove everything from temp stores to avoid outdated data.
rm -r ./store/models
mkdir -p ./store/models
rm -r ${CURR_FOLDER}/store/models
mkdir -p ${CURR_FOLDER}/store/models

poetry run pytest --nbmake ./demo/scenarios/1_requirements.ipynb
poetry run pytest --nbmake ./demo/scenarios/2_evidence.ipynb
poetry run pytest --nbmake ./demo/scenarios/2a_evidence_fairness.ipynb
poetry run pytest --nbmake ./demo/scenarios/2b_evidence_robustness.ipynb
poetry run pytest --nbmake ./demo/scenarios/2c_evidence_performance.ipynb
poetry run pytest --nbmake ./demo/scenarios/2d_evidence_interpretability.ipynb
poetry run pytest --nbmake ./demo/scenarios/2e_evidence_accuracy.ipynb
poetry run pytest --nbmake ./demo/scenarios/2f_evidence_interoperability.ipynb
poetry run pytest --nbmake ./demo/scenarios/2g_evidence_resilience.ipynb
poetry run pytest --nbmake ./demo/scenarios/2h_evidence_monitorability.ipynb
poetry run pytest --nbmake ./demo/scenarios/2i_evidence_performance_time.ipynb
poetry run pytest --nbmake ./demo/scenarios/3_report.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/1_requirements.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2_evidence.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2a_evidence_fairness.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2b_evidence_robustness.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2c_evidence_performance.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2d_evidence_interpretability.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2e_evidence_accuracy.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2f_evidence_interoperability.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2g_evidence_resilience.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2h_evidence_monitorability.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/2i_evidence_performance_time.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/3_report.ipynb
13 changes: 7 additions & 6 deletions demo/simple/test.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env bash
CURR_FOLDER="./demo/simple"

# Remove everything from temp stores to avoid outdated data.
rm -r ./store/models
mkdir -p ./store/models
rm -r ${CURR_FOLDER}/store/models
mkdir -p ${CURR_FOLDER}/store/models

poetry run pytest --nbmake ./demo/simple/negotiation.ipynb
poetry run pytest --nbmake ./demo/simple/requirements.ipynb
poetry run pytest --nbmake ./demo/simple/evidence.ipynb
poetry run pytest --nbmake ./demo/simple/report.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/negotiation.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/requirements.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/evidence.ipynb
poetry run pytest --nbmake ${CURR_FOLDER}/report.ipynb

0 comments on commit 8875517

Please sign in to comment.