|
32 | 32 | name: Build CPython-${{ matrix.os }} |
33 | 33 | steps: |
34 | 34 | - uses: actions/checkout@v4 |
35 | | - - uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3 |
| 35 | + - uses: pypa/cibuildwheel@352e01339f0a173aa2a3eb57f01492e341e83865 # v3.13.3 |
36 | 36 | env: |
37 | 37 | CIBW_ARCHS_MACOS: x86_64 universal2 |
38 | 38 | CIBW_TEST_SKIP: '*universal2:arm64' |
|
42 | 42 | name: ${{ matrix.os }}-wheel |
43 | 43 | path: ./wheelhouse/*.whl |
44 | 44 | if-no-files-found: error |
45 | | - test_non_linux_wheels: |
46 | | - needs: build_wheels |
47 | | - runs-on: ${{ matrix.os }} |
48 | | - strategy: |
49 | | - matrix: |
50 | | - os: [macos-latest, windows-latest] |
51 | | - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
52 | | - name: Test CPython ${{ matrix.python-version }}-${{ matrix.os }} |
53 | | - steps: |
54 | | - - name: Setup Python |
55 | | - uses: actions/setup-python@v5 |
56 | | - with: |
57 | | - python-version: ${{ matrix.python-version }} |
58 | | - allow-prereleases: true |
59 | | - - name: Download a previously created wheel |
60 | | - uses: actions/download-artifact@v4 |
61 | | - with: |
62 | | - name: ${{ matrix.os }}-wheel |
63 | | - - name: Test wheel |
64 | | - shell: bash |
65 | | - run: | |
66 | | - python -m pip install -U pip |
67 | | - python -m pip install --no-index --find-links=./ python_bsonjs |
68 | | - python -m pip list | grep python-bsonjs |
69 | | - python -c "from bsonjs import dumps" |
70 | | - # Linux |
71 | | - test_manylinux_wheels: |
72 | | - runs-on: ${{ matrix.os }} |
73 | | - needs: build_wheels |
74 | | - strategy: |
75 | | - matrix: |
76 | | - os: [ubuntu-latest] |
77 | | - container: ['manylinux2014_i686', 'manylinux2014_x86_64'] |
78 | | - python-version: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313'] |
79 | | - name: Test CPython ${{ matrix.python-version }}-${{ matrix.container }} |
80 | | - steps: |
81 | | - - name: Download a previously created wheel |
82 | | - uses: actions/download-artifact@v4 |
83 | | - with: |
84 | | - name: ${{ matrix.os }}-wheel |
85 | | - - name: Test wheel |
86 | | - run: | |
87 | | - docker run --rm --volume `pwd`:/python quay.io/pypa/${{ matrix.container }} /bin/bash -c "/opt/python/${{ matrix.python-version }}/bin/python -m pip install -U pip && /opt/python/${{ matrix.python-version }}/bin/python -m pip install --find-links=/python/ --no-index python_bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -m pip list | grep python-bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -c 'from bsonjs import dumps'" |
88 | 45 | make_sdist: |
89 | 46 | name: Make SDist |
90 | 47 | runs-on: ubuntu-latest |
|
0 commit comments