Skip to content

ci: GitHub Actions uses windows latest for tox tests #978

ci: GitHub Actions uses windows latest for tox tests

ci: GitHub Actions uses windows latest for tox tests #978

Workflow file for this run

name: Build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
PIP_EXTRA_INDEX_URL: ${{vars.PIP_EXTRA_INDEX_URL}}
UV_EXTRA_INDEX_URL: ${{vars.PIP_EXTRA_INDEX_URL}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
# Used to host cibuildwheel
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install uv
- name: Build wheels
if: contains(matrix.os, 'windows')
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
uv run --only-group=cibuildwheel -m cibuildwheel --output-dir wheelhouse
- name: Build wheels
if: "!contains(matrix.os, 'windows')"
run: uv run --only-group=cibuildwheel -m cibuildwheel --output-dir wheelhouse
# CIBW_SOME_OPTION: value