Repository navigation
Unify license metadata on MPL-2.0 #29
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: Build (CPU) | |
| on: | |
| push: | |
| branches: [master, dev] | |
| pull_request: | |
| branches: [master, dev] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| version: | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.version }} | |
| - name: Install PyTorch (CPU) | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install numpy | |
| python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| - name: Install build dependencies | |
| run: python -m pip install scikit-build-core pybind11 | |
| - name: Build | |
| # Same command as documented in README: build against the PyTorch | |
| # installed above instead of an isolated build environment. | |
| run: pip install --no-build-isolation . | |
| - name: Import test | |
| # Run outside the repository root so the installed package is imported, | |
| # not the source directory. | |
| working-directory: ${{ runner.temp }} | |
| run: | | |
| python -c "import torchmcubes; print(torchmcubes.__file__, torchmcubes.__version__)" | |
| python -c "import importlib.metadata as m; print('Requires-Dist:', m.requires('torchmcubes'))" |