aai-institute / aai-institute/tfl-training-sbi

Re-activate Notebook validation

未關閉
#64 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement house-keeping
主要語言
Jupyter Notebook
星號
4
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

In order to push notebooks with a commented load stmt. - s.t. participants don't accidentally see the solution - the validation was deactivated in a589d85. However, it is a useful check to not hand out notebooks with solutions included. Therefore, it has to be re-activated with a nice workaround s.t. the `%load` magic command not executed by accident.

```bash
- name: validate notebooks
run: |
for notebook in notebooks/*.ipynb; do
if grep -q '# *%load ' "$notebook"; then
echo "$notebook contains an executed load statement.
This is not allowed inside the docker image for participants, make sure you remove this
in a future commit."
exit 255
fi
done
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。