Provide wheels directly for every platform #3
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 wheels | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' # Matches all branch names, for PRs | |
| push: | |
| branches: | |
| - 'main' # Run tests on main branch | |
| jobs: | |
| build-wheels: | |
| name: Build wheels | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python-version: [3.9, 3.11, 3.13] | |
| exclude: | |
| - os: windows-latest | |
| python-version: 3.9 | |
| - os: windows-latest | |
| python-version: 3.13 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: uv sync | |
| - name: Build the wheel | |
| run: uv build --wheel | |
| - name: Initialize test environment | |
| run: | | |
| uv init --no-workspace test | |
| cd test | |
| uv add ../dist/*.whl | |
| - name: Verify installation | |
| run: uv run -- python -c "from python_mscl import mscl" |