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

Re-activate Notebook validation

Aperta
#64 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement house-keeping
Lingua principale
Jupyter Notebook
Stelle
4
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.