change workers a bit, some take too much time #291
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: CI | |
| #on: [push, pull_request, workflow_dispatch] | |
| on: [push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| # matrix: | |
| # os: [ubuntu-20.04, windows-2022, macos-14] | |
| matrix: | |
| include: | |
| - os: macos-latest # mac x86 | |
| - os: macos-14 # mac arm | |
| # - os: ubuntu-22.04 TODO: got some errors exec format error | |
| # cibw_archs: aarch64 | |
| - os: ubuntu-latest | |
| - os: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.2.1 | |
| env: | |
| CIBW_ARCHS: ${{ matrix.cibw_archs }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-${{ matrix.os }}-${{ matrix.cibw_archs || 'default' }} | |
| path: ./wheelhouse/*.whl | |
| # build: | |
| # runs-on: ${{ matrix.os }} | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # os: [ubuntu-latest, windows-latest, macos-latest] | |
| # python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Set up Python ${{ matrix.python-version }} | |
| # uses: actions/setup-python@v5 | |
| # with: | |
| # python-version: ${{ matrix.python-version }} | |
| # - name: Install test dependencies | |
| # run: python -m pip install .[test] | |
| # - name: run tests | |
| # run: python run_tests.py |