diff --git a/content/course/modern-ds/continuous_integration/index.qmd b/content/course/modern-ds/continuous_integration/index.qmd index 7c30409b8..c9a59be46 100644 --- a/content/course/modern-ds/continuous_integration/index.qmd +++ b/content/course/modern-ds/continuous_integration/index.qmd @@ -429,8 +429,8 @@ Le modèle suivant, expliqué en dessous, fournit un modèle de recette pour tester un notebook. Supposons que ce fichier soit présent dans un chemin `.github/workflows/test-notebook.yml` -{{< tabs tabTotal="2" >}} -{{% tab tabName="Environnement virtuel" %}} + +
Environnement virtuel ```yaml name: Test notebook execution using Github Actions @@ -464,8 +464,9 @@ jobs: retention-days: 5 ``` -{{% /tab %}} -{{% tab tabName="Environnement conda" %}} +
+ +
Environnement conda ```yaml name: Test notebook execution using Github Actions @@ -499,8 +500,8 @@ jobs: path: myfile.ipynb retention-days: 5 ``` -{{% /tab %}} -{{< /tabs >}} + +
Dans les deux cas, la démarche est la même: @@ -713,41 +714,3 @@ AWS. - https://towardsdatascience.com/from-jupyter-to-kubernetes-refactoring-and-deploying-notebooks-using-open-source-tools-19f99585e923 -## Annexe: la même approche d'intégration continue avec `Travis` - -`Travis` est un système d'intégration continue -qui était populaire avant l'émergence des -`Github Actions`. La manière équivalente de procéder -sur `Travis` par rapport à celle -présentée précedemment serait: - -```yaml -# Modèle de fichier .travis.yml -language: python -python: - - "3.10" - -install: - - sudo apt-get update - # We do this conditionally because it saves us some downloading if the - # version is the same. - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; - else - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - fi - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - hash -r - - conda config --set always_yes yes --set changeps1 no - - conda update -q conda - # Useful for debugging any issues with conda - - conda info -a - - conda env create -n test-environment python=$TRAVIS_PYTHON_VERSION -f environment.yml - - source activate test-environment - -script: - - jupytext --to py --execute myfile.ipynb -``` - -