1919 runs-on : ${{ matrix.os }}
2020 strategy :
2121 matrix :
22- os : [macos-12 , windows-2019, ubuntu-latest]
22+ os : [macos-14 , windows-2019, ubuntu-latest]
2323 name : Build CPython ${{ matrix.python-version }}-${{ matrix.os }}
2424 steps :
2525 - uses : actions/checkout@v4
2828 CIBW_ARCHS_MACOS : x86_64 universal2
2929 CIBW_TEST_SKIP : ' *universal2:arm64'
3030 CIBW_BUILD : " cp38-macosx_universal2 cp38-win* cp38-manylinux_{x86_64,i686}"
31- - uses : actions/upload-artifact@v3
31+ - uses : actions/upload-artifact@v4
3232 with :
33- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
33+ name : ${{ matrix.os }}-wheel
3434 path : ./wheelhouse/*.whl
3535 if-no-files-found : error
3636 test_non_linux_wheels :
4848 python-version : ${{ matrix.python-version }}
4949 allow-prereleases : true
5050 - name : Download a previously created wheel
51- uses : actions/download-artifact@v2
51+ uses : actions/download-artifact@v4
5252 with :
53- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
53+ name : ${{ matrix.os }}-wheel
5454 - name : Test wheel
5555 shell : bash
5656 run : |
7171 name : Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
7272 steps :
7373 - name : Download a previously created wheel
74- uses : actions/download-artifact@v2
74+ uses : actions/download-artifact@v4
7575 with :
76- name : python_bsonjs-3.8- ${{ matrix.os }}-wheel
76+ name : ${{ matrix.os }}-wheel
7777 - name : Test wheel
7878 run : |
7979 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'"
9090 run : |
9191 python -m pip install build
9292 python -m build --sdist
93- - uses : actions/upload-artifact@v3
93+ - uses : actions/upload-artifact@v4
9494 with :
9595 name : " sdist"
9696 path : dist/*.tar.gz
@@ -100,15 +100,15 @@ jobs:
100100 name : Download Wheels
101101 steps :
102102 - name : Download all workflow run artifacts
103- uses : actions/download-artifact@v3
103+ uses : actions/download-artifact@v4
104104 - name : Flatten directory
105105 working-directory : .
106106 run : |
107107 find . -mindepth 2 -type f -exec mv {} . \;
108108 find . -type d -empty -delete
109- - uses : actions/upload-artifact@v3
109+ - uses : actions/upload-artifact@v4
110110 with :
111- name : all-dist-${{ github.head_ref || github.ref_name }}
111+ name : all-dist-${{ github.run_id }}
112112 path : " ./*"
113113 publish :
114114 # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
@@ -120,9 +120,9 @@ jobs:
120120 id-token : write
121121 steps :
122122 - name : Download all the dists
123- uses : actions/download-artifact@v3
123+ uses : actions/download-artifact@v4
124124 with :
125- name : all-dist-${{ github.head_ref || github.ref_name }}
125+ name : all-dist-- ${{ github.run_id }}
126126 path : dist/
127127 - name : Publish distribution 📦 to PyPI
128128 uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments