@@ -10,60 +10,60 @@ jobs:
1010 runs-on : ${{ matrix.os }}
1111 strategy :
1212 matrix :
13- os : [" macos-latest", " ubuntu-latest", " windows-latest" ]
13+ os : [macos-latest, ubuntu-latest, windows-latest]
1414 fail-fast : false
1515
1616 steps :
17- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v4
1818
19- - name : " Build wheels"
20- uses : pypa/cibuildwheel@v2.8 .1
21- env :
22- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
23- CIBW_BUILD : cp37-* cp38-* cp39-* cp310-*
24- CIBW_SKIP : " *musllinux*"
25- CIBW_ARCHS : native
26- CIBW_BUILD_FRONTEND : build
27- CIBW_TEST_COMMAND : " python {project}/TESTS/unitTests.py"
19+ - name : Build wheels
20+ uses : pypa/cibuildwheel@357b80c11e6e995e6297e86386460ae84cbc5bee # v2.18 .1
21+ env :
22+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
23+ CIBW_BUILD : cp37-* cp38-* cp39-* cp310-*
24+ CIBW_SKIP : ' *musllinux*'
25+ CIBW_ARCHS : native
26+ CIBW_BUILD_FRONTEND : build
27+ CIBW_TEST_COMMAND : python {project}/TESTS/unitTests.py
2828 # cross-compilation for Apple Silicon:
2929 # https://cibuildwheel.readthedocs.io/en/stable/faq/#how-to-cross-compile
30- CIBW_ARCHS_MACOS : x86_64 arm64
30+ CIBW_ARCHS_MACOS : x86_64 arm64
3131
32- - name : " Upload wheel as artifact"
33- uses : actions/upload-artifact@v4
34- with :
35- name : artifact-${{ matrix.os }}-wheel
36- path : " ./**/*.whl"
32+ - name : Upload wheel as artifact
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : artifact-${{ matrix.os }}-wheel
36+ path : ./**/*.whl
3737
3838 build-sdist :
3939 name : Make source distribution
4040 runs-on : ubuntu-latest
4141 steps :
42- - uses : actions/checkout@v3
42+ - uses : actions/checkout@v4
4343
4444 - run : pipx run build --sdist
4545
4646 - uses : actions/upload-artifact@v4
4747 with :
4848 name : artifact-source-dist
49- path : " ./**/dist/*.tar.gz"
49+ path : ./**/dist/*.tar.gz
5050
5151 deploy :
5252 needs : [build-wheels, build-sdist]
5353 runs-on : ubuntu-latest
5454 if : github.event_name == 'release' && github.event.action == 'published'
5555 steps :
56- - uses : actions/checkout@v3
57- - name : Download all artifacts
58- uses : actions/download-artifact@v4
59- - name : Copy artifacts to dist/ folder
60- run : |
61- find . -name 'artifact-*' -exec unzip '{}' \;
62- mkdir -p dist/
63- find . -name '*.tar.gz' -exec mv '{}' dist/ \;
64- find . -name '*.whl' -exec mv '{}' dist/ \;
65- - name : Publish package to test pypi
66- uses : pypa/gh-action-pypi-publish@release/v1
67- with :
68- user : __token__
69- password : ${{ secrets.PYPI_API_TOKEN }}
56+ - uses : actions/checkout@v4
57+ - name : Download all artifacts
58+ uses : actions/download-artifact@v4
59+ - name : Copy artifacts to dist/ folder
60+ run : |
61+ find . -name 'artifact-*' -exec unzip '{}' \;
62+ mkdir -p dist/
63+ find . -name '*.tar.gz' -exec mv '{}' dist/ \;
64+ find . -name '*.whl' -exec mv '{}' dist/ \;
65+ - name : Publish package to test pypi
66+ uses : pypa/gh-action-pypi-publish@68e62d4871ad9d14a9d55f114e6ac71f0b408ec0 # v1.8.14
67+ with :
68+ user : __token__
69+ password : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments