ci: investigate why extensions are not compiled #8
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: Investigate Linux compilation issues | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "optimum/quanto/**" | |
- "examples/**" | |
- "pyproject.toml" | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
paths: | |
- "optimum/quanto/**" | |
- "examples/**" | |
- "pyproject.toml" | |
jobs: | |
investigate: | |
runs-on: [self-hosted, single-gpu , nvidia-gpu, a10, ci] | |
strategy: | |
fail-fast: false | |
container: | |
image: pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel | |
options: --gpus 0 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and install packages | |
run: | | |
pip install --upgrade pip | |
pip install -U setuptools setuptools_scm | |
python -m build . | |
tar tf dist/optimum_quanto-0.2.3.dev0.tar.gz | |
pip dist/optimum_quanto-0.2.3.dev0.tar.gz | |
# Run examples | |
- name: Run Dummy example | |
run: | | |
pip show -f optimum-quanto | |
python examples/check_extension_compiled.py |