Skip to content
Snippets Groups Projects
Commit e96651c5 authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Update CI

parent bfddafd1
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
<img width="800px" src="../fidle/img/00-Fidle-header-01.svg"></img> <img width="800px" src="../fidle/img/00-Fidle-header-01.svg"></img>
# Gestion des tests d'intégration continue # Gestion des tests d'intégration continue
**La liste des notebooks a éxécuter** et de leurs paramètres (override) est définie dans un **profile**.\ **La liste des notebooks a éxécuter** et de leurs paramètres (override) est définie dans un **profile**.\
Un **rapport d'éxécution** est généré durant l'éxécution des tests. Un **rapport d'éxécution** est généré durant l'éxécution des tests.
## Step 1 - Init ## Step 1 - Init
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` ```
import cookci import cookci
import os import os
import pwk import pwk
datasets_dir = pwk.init('RUNCI') datasets_dir = pwk.init('RUNCI')
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
## Step 2 - Profile and parameters ## Step 2 - Profile and parameters
`profile_name`: ci profile name - see en ./ci `profile_name`: ci profile name - see en ./ci
`reset`: reset or not the catalog of results `reset`: reset or not the catalog of results
`filters`: regex to define witch notebook will be run, examples : `filters`: regex to define witch notebook will be run, examples :
- `.*` - `.*`
- `Nb_GTSRB.*|Nb_AE.*` - `Nb_GTSRB.*|Nb_AE.*`
- `Nb_VAE3` - `Nb_VAE3`
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` ```
profile_name = './ci/small_cpu.yml' profile_name = './ci/small_cpu.yml'
reset = False reset = False
filter = 'Nb_LINR1' filter = 'Nb_LINR1'
pwk.override('profile_name', 'reset', 'filter') pwk.override('profile_name', 'reset', 'filter')
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
## Step 3 - Run it ## Step 3 - Run it
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` ```
cookci.run_profile(profile_name, reset, filter) cookci.run_profile(profile_name, reset, filter)
cookci.build_ci_report(profile_name) cookci.build_ci_report(profile_name)
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` ```
%%bash %%bash
tree ./run/ci # tree ./run/ci
# find .. -name "*==ci==.*" -ls | sort -k11 # find .. -name "*==ci==.*" -ls | sort -k11
# rm $(find .. -name "*==ci==.ipynb") # rm $(find .. -name "*==ci==.ipynb")
# rm $(find .. -name "*==ci==.html") # rm $(find .. -name "*==ci==.html")
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
--- ---
<img width="80px" src="../fidle/img/00-Fidle-logo-01.svg"></img> <img width="80px" src="../fidle/img/00-Fidle-logo-01.svg"></img>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment