Fix conda forge package test workflow #1600
Workflow file for this run
This file contains hidden or 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 | |
| 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: | | |
| # Extract and install package dependency requirements from metadata | |
| # Add homogeneous TOML support (Python >= 3.12 has standard tomllib) | |
| pip install tomli | |
| # First, install all dependencies except khiops-core and khiops-drivers-* | |
| python scripts/extract_dependencies_from_pyproject_toml.py -f "pyproject.toml" --exclude-khiops-family > requires-no-khiops.txt | |
| pip install `cat requires-no-khiops.txt` | |
| # khiops-core and khiops-drivers-* must always be installed from TestPyPI in order to avoid distorting usage statistics | |
| python scripts/extract_dependencies_from_pyproject_toml.py -f "pyproject.toml" --khiops-family-only > requires-khiops.txt | |
| pip install --index-url https://test.pypi.org/simple `cat requires-khiops.txt` | |
| rm -f requires-khiops.txt requires-no-khiops.txt | |
| # Install black for the samples-generation script | |
| pip install black | |
| - name: Run pre-commit checks | |
| uses: pre-commit/action@v3.0.1 |