Skip to content

Commit

Permalink
Merge pull request #13 from SciKit-Surgery/12-python312
Browse files Browse the repository at this point in the history
12 python312
  • Loading branch information
thompson318 committed Feb 22, 2024
2 parents 300a23f + 969f580 commit 90e8c43
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-ver: [3.7, 3.8, 3.9, '3.10', '3.11']
python-ver: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
experimental: [false]

Expand All @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine auditwheel
pip install wheel twine auditwheel build
- name: Add msbuild to PATH
if: matrix.os == 'windows-latest'
Expand All @@ -37,7 +37,7 @@ jobs:
cmake -G "Visual Studio 17 2022" -A x64 -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=../install ..
cmake --build .
cd ../
python.exe setup.py sdist bdist_wheel --plat-name win_amd64
python.exe -m build
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing
rm -r build
rm -r install
Expand All @@ -51,7 +51,7 @@ jobs:
cmake -G "Visual Studio 17" -A Win32 -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF -DCMAKE_INSTALL_PREFIX=../install ..
cmake --build .
cd ../
python.exe setup.py sdist bdist_wheel --plat-name win32
python.exe -m build
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing
rm -r build
rm -r install
Expand All @@ -64,15 +64,16 @@ jobs:
cmake -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF ..
make
cd ..
python -m build
- name: build ubuntu manylinux
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python-ver == '3.10'
uses: RalfG/[email protected]_x86_64
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'

- name: upload manylinux
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python-ver == '3.10'
run: |
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/*-manylinux*.whl --skip-existing
Expand All @@ -84,6 +85,6 @@ jobs:
cmake -DBUILD_PYTHON:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -Dndicapi_BUILD_APPLICATIONS:BOOL=OFF ..
make
cd ..
python setup.py sdist bdist_wheel
python -m build
python -m twine upload -u __token__ -p ${{secrets.PYPI_API_TOKEN}} dist/* --skip-existing

0 comments on commit 90e8c43

Please sign in to comment.