Update new helpers #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install pre-requisites | |
run: | | |
pip install nbconvert nbformat | |
pip show nbformat | |
- name: Install khiops-python | |
run: | | |
git clone https://github.com/khiopsml/khiops-python | |
cd khiops-python | |
git switch $KHIOPS_PYTHON_REVISION | |
pip install . | |
- name: Execute the convert hook | |
run: | | |
pip show nbformat | |
mkdir output | |
python khiops-python/doc/convert_tutorials.py khiops-python-tutorials output | |
ls -ltr output |