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

Re-activate Notebook validation

Abierto
#64 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement house-keeping
Lenguaje dominante
Jupyter Notebook
Estrellas
4
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.