feat(core): Support serialization of opaque objects (#75) #536
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: CI | |
on: [push, pull_request] | |
env: | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_TEST_REQUIRES: "pytest torch jsonpickle" | |
CIBW_TEST_COMMAND: "pytest -svv --durations=20 {project}/tests/python/" | |
CIBW_ENVIRONMENT: "MLC_SHOW_CPP_STACKTRACES=1" | |
CIBW_REPAIR_WHEEL_COMMAND_LINUX: > | |
auditwheel repair -w {dest_dir} {wheel} && | |
pipx run abi3audit --strict --report {wheel} | |
CIBW_REPAIR_WHEEL_COMMAND_MACOS: > | |
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} && | |
pipx run abi3audit --strict --report {wheel} | |
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: > | |
pipx run delvewheel repair -w {dest_dir} {wheel} && | |
pipx run abi3audit --strict --report {wheel} | |
MLC_CIBW_VERSION: "2.22.0" | |
MLC_PYTHON_VERSION: "3.9" | |
MLC_CIBW_WIN_BUILD: "cp39-win_amd64" | |
MLC_CIBW_MAC_BUILD: "cp39-macosx_arm64" | |
MLC_CIBW_LINUX_BUILD: "cp313-manylinux_x86_64" | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.MLC_PYTHON_VERSION }} | |
- uses: pre-commit/[email protected] | |
- uses: ytanikin/[email protected] | |
if: github.event_name == 'pull_request' | |
with: | |
task_types: '["feat", "fix", "ci", "chore", "test"]' | |
add_label: 'false' | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
needs: pre-commit | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.MLC_PYTHON_VERSION }} | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel=="${{ env.MLC_CIBW_VERSION }}" | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BEFORE_ALL: ".\\scripts\\cpp_tests.bat" | |
CIBW_BUILD: ${{ env.MLC_CIBW_WIN_BUILD }} | |
- name: Show package contents | |
run: python scripts/show_wheel_content.py wheelhouse | |
macos: | |
name: MacOS | |
runs-on: macos-latest | |
needs: pre-commit | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.MLC_PYTHON_VERSION }} | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }} | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BEFORE_ALL: "./scripts/cpp_tests.sh" | |
CIBW_BUILD: ${{ env.MLC_CIBW_MAC_BUILD }} | |
- name: Show package contents | |
run: python scripts/show_wheel_content.py wheelhouse | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
needs: pre-commit | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.MLC_PYTHON_VERSION }} | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }} | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_BEFORE_ALL: "./scripts/setup_manylinux2014.sh && ./scripts/cpp_tests.sh" | |
CIBW_BUILD: ${{ env.MLC_CIBW_LINUX_BUILD }} | |
- name: Show package contents | |
run: python scripts/show_wheel_content.py wheelhouse |