Skip to content

Commit

Permalink
ci: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dwpeng committed Dec 18, 2024
1 parent 5ab951e commit cc3ada9
Showing 1 changed file with 19 additions and 56 deletions.
75 changes: 19 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,77 +48,40 @@ jobs:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_*_IMAGE: ${{ matrix.manylinux-image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux-image }}
- name: test python
continue-on-error: true
run: |
python -m pip install wheelhouse/*.whl
python -m pip install pytest
python -m pytest python/test/test-file.py

test-on-windows:
name: Build wheels on Windows
runs-on: windows-latest
build-wheels-macos-windows:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [38, 39, 310, 311, 312, 313]
arch: [AMD64, ARM64]
os: [macos-latest, macos-13, windows-latest]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine setuptools wheel
pip install build twine flake8 setuptools wheel
- name: Install cibuildwheel
run: python -m pip install cibuildwheel -U

- name: Build wheels
if: matrix.os == 'macos-latest'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp${{ matrix.python-version }}-*'
CIBW_SKIP: '*musllinux*'
CIBW_ARCHS: ${{ matrix.arch }}
- name: test python
continue-on-error: true
run: |
python -m pip install wheelhouse/*.whl
python -m pip install pytest
python -m pytest python/test/test-file.py
CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp313t-*
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.15
CIBW_FREE_THREADED_SUPPORT: 1

test-on-macos:
name: Build wheels on macOS
runs-on: macos-latest
strategy:
matrix:
python-version: [38, 39, 310, 311, 312, 313]
arch: [arm64, x86_64, universal2]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine setuptools wheel
- name: Install cibuildwheel
run: python -m pip install cibuildwheel -U
- name: Build wheels
if: matrix.os != 'macos-latest'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp${{ matrix.python-version }}-*'
CIBW_SKIP: '*musllinux*'
CIBW_ARCHS: ${{ matrix.arch }}
- name: test python
continue-on-error: true
run: |
python -m pip install wheelhouse/*.whl
python -m pip install pytest
python -m pytest python/test/test-file.py
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-*
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
CIBW_FREE_THREADED_SUPPORT: 1

0 comments on commit cc3ada9

Please sign in to comment.