Skip to content

Test with 3.10

Test with 3.10 #22

Workflow file for this run

name: pip packaging

Check failure on line 1 in .github/workflows/pack-pip.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pack-pip.yml

Invalid workflow file

(Line: 60, Col: 13): Job 'publish' depends on unknown job 'build-sdist'.
on:
workflow_dispatch:
inputs:
python_repository:
description: python repository
type: choice
default: test.pypi
options: [test.pypi, pypi]
push:
tags: ['*']
pull_request:
defaults:
run:
shell: bash
jobs:
build-wheel:
name: Build wheel
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-14]
steps:
- uses: actions/checkout@v6
- name: Load Visual C++ Environment Variables (Windows)
if: runner.os == 'Windows'
shell: cmd
run: |
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
set >> %GITHUB_ENV%
- name: Build wheels
uses: pypa/cibuildwheel@v3.3.1
- name: install Python
uses: actions/setup-python@v5
- name: Test built wheel
run: |
pip install --find-links=wheelhouse khisto
pip install pytest>=8.3 pytest-cov>=6 pytest-xdist>=3.6 pytest-sugar>=1.0
pytest tests/
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: success() || failure() # always run even if the previous step fails
with:
report_paths: wheelhouse/test-results.xml
- uses: actions/upload-artifact@v6
with:
name: pkg-wheel-${{ matrix.os }}
path: wheelhouse/*.whl
if-no-files-found: error
publish:
if: github.ref_type == 'tag' && github.repository_owner == 'KhiopsML'
name: Publish to Test.PyPI.org
needs: [build-sdist, build-wheel]
runs-on: ubuntu-latest
environment:
name: ${{ inputs.python_repository}}
url: https://${{ inputs.python_repository}}.org/p/khisto
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v5
with:
pattern: pkg-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://${{ inputs.python_repository}}.org/legacy/
verbose: true