-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.44 KB
/
quick-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: Quick Checks
env:
KHIOPS_PYTHON_REVISION: 171-implement-multi-table-helper-functions
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install khiops-python dev dependencies
run: |
pip install pre-commit
- name: Run pre-commit checks
uses: pre-commit/[email protected]
execute-nb:
runs-on: ubuntu-22.04
container:
image: ghcr.io/khiopsml/khiops-python/khiopspydev-ubuntu22.04:latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install pre-requisites
run: |
pip install nbconvert nbformat jupyter
- name: Install khiops-python
run: |
git clone https://github.com/khiopsml/khiops-python
cd khiops-python
git switch $KHIOPS_PYTHON_REVISION
pip install .
kh-status
kh-download-datasets
- name: Execute the convert hook
run: |
mkdir output_nb
export KHIOPS_PROC_NUMBER=1
python khiops-python/doc/convert_tutorials.py --execute-notebooks ./ output_nb
ls -ltr output_nb