|
1 | 1 | name: CI |
2 | 2 |
|
3 | | -#on: [push, pull_request, workflow_dispatch] |
4 | | -on: [push] |
5 | | - |
| 3 | +on: [push, workflow_dispatch] |
6 | 4 |
|
7 | 5 | concurrency: |
8 | 6 | group: ${{ github.workflow }}-${{ github.ref }} |
9 | 7 | cancel-in-progress: true |
10 | 8 |
|
11 | 9 | jobs: |
12 | | - build_wheels: |
13 | | - name: Build wheels on ${{ matrix.os }} |
| 10 | + build: |
14 | 11 | runs-on: ${{ matrix.os }} |
15 | 12 | strategy: |
16 | 13 | fail-fast: false |
17 | | - # matrix: |
18 | | - # os: [ubuntu-20.04, windows-2022, macos-14] |
19 | 14 | matrix: |
20 | | - include: |
21 | | - - os: macos-15-intel # mac x86 |
22 | | - - os: macos-14 # Apple silicon |
23 | | - - os: ubuntu-latest |
24 | | - - os: ubuntu-24.04-arm |
25 | | - - os: windows-latest |
26 | | - - os: windows-11-arm |
| 15 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 16 | + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
27 | 17 |
|
28 | 18 | steps: |
29 | | - - uses: actions/checkout@v4 |
30 | | - |
31 | | - - name: Build wheels |
32 | | - uses: pypa/cibuildwheel@v3.2.1 |
33 | | - env: |
34 | | - CIBW_ARCHS: ${{ matrix.cibw_archs }} |
35 | | - |
36 | | - - uses: actions/upload-artifact@v4 |
37 | | - with: |
38 | | - name: dist-${{ matrix.os }}-${{ matrix.cibw_archs || 'default' }} |
39 | | - path: ./wheelhouse/*.whl |
40 | | - |
41 | | - # build: |
42 | | - # runs-on: ${{ matrix.os }} |
43 | | - # strategy: |
44 | | - # fail-fast: false |
45 | | - # matrix: |
46 | | - # os: [ubuntu-latest, windows-latest, macos-latest] |
47 | | - # python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] |
48 | | - |
49 | | - # steps: |
50 | | - # - uses: actions/checkout@v4 |
51 | | - # - name: Set up Python ${{ matrix.python-version }} |
52 | | - # uses: actions/setup-python@v5 |
53 | | - # with: |
54 | | - # python-version: ${{ matrix.python-version }} |
55 | | - # - name: Install test dependencies |
56 | | - # run: python -m pip install .[test] |
57 | | - # - name: run tests |
58 | | - # run: python run_tests.py |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + - name: Set up Python ${{ matrix.python-version }} |
| 21 | + uses: actions/setup-python@v5 |
| 22 | + with: |
| 23 | + python-version: ${{ matrix.python-version }} |
| 24 | + cache: 'pip' |
| 25 | + - name: Install test dependencies |
| 26 | + run: python -m pip install .[test] |
| 27 | + - name: run tests |
| 28 | + run: python run_tests.py |
0 commit comments