diff --git a/.gitignore b/.gitignore index 5983c40..54d9753 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.swp .ipynb_checkpoints +slides.slides.html diff --git a/custom.css b/custom.css new file mode 100644 index 0000000..a1af793 --- /dev/null +++ b/custom.css @@ -0,0 +1 @@ +/* custom */ diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..b5985fd Binary files /dev/null and b/images/logo.png differ diff --git a/slides.ipynb b/slides.ipynb index 75a4350..2125076 100644 --- a/slides.ipynb +++ b/slides.ipynb @@ -1,162 +1,176 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "slideshow": { + "slide_type": "skip" + } + }, + "outputs": [], + "source": [ + "cd ../so-workshop" + ] + }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ - "# So Open\n", - "## So Open\n", - "\n", - "
\n", + "# So, you want to go open Science ?\n", + "## WORKSHOP TIME !\n", "\n", - "
EPFL
\n", + "

\n", + "![](./images/logo.png)\n", + "

\n", "\n", - "
https://scitas.epfl.ch
" + "
SCITAS training with expertise from the EPFL Library
\n", + "
Nicolas Richart and Jean-Baptiste Aubort - SCITAS
" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "## Continuous Integration" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### What is CI ?\n", "- Run tests at each commit\n", "- Detect bugs when they are introduced\n", "- Detect when fixed bugs appear again (regression)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### What else ?\n", "Ensure code has a certain quality level\n", "- Linter\n", "- Test Coverage" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "## Jenkins base" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "slideshow": { "slide_type": "subslide" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Already on 'feature/jenkins-base'\n", "Your branch is up to date with 'origin/feature/jenkins-base'.\n" ] } ], "source": [ "git checkout feature/jenkins-base" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "slideshow": { "slide_type": "subslide" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "pipeline {\n", "\n", " agent {\n", " docker {\n", " image 'python:3.7'\n", " }\n", " }\n", "\n", " environment {\n", " HOME = \"$WORKSPACE\"\n", " }\n", "\n", " stages {\n", " stage('install dependencies') {\n", " steps {\n", " sh 'pip3 install --user pytest'\n", " }\n", " }\n", " stage('run tests') {\n", " steps {\n", " sh '$HOME/.local/bin/pytest code/test.py'\n", " }\n", " }\n", " }\n", "\n", "}\n" ] } ], "source": [ "cat ../Jenkinsfile" ] } ], "metadata": { "celltoolbar": "Slideshow", "kernelspec": { "display_name": "Bash", "language": "bash", "name": "bash" }, "language_info": { "codemirror_mode": "shell", "file_extension": ".sh", "mimetype": "text/x-sh", "name": "bash" }, "livereveal": { "height": 768, "theme": "serif", "transition": "none", "width": 1024 } }, "nbformat": 4, "nbformat_minor": 2 }