PYTHON-3881 [WinKerberos] Support Python 3.7-3.12 #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Wheels | |
on: [push, pull_request] | |
concurrency: | |
group: release-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_wheels: | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
buildplat: ["win_amd64", "win32"] | |
python: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat }} | |
CIBW_TEST_COMMAND: "python -c \"import winkerberos;print(winkerberos.__version__)\"" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.python }}-${{ matrix.buildplat }} | |
path: ./wheelhouse/*.whl | |
make_sdist: | |
name: Make SDist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build SDist | |
run: | | |
pip install check-manifest | |
check-manifest -v | |
python setup.py sdist --formats=zip | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: "sdist" | |
path: dist/*.zip | |
collect_wheels: | |
runs-on: ubuntu-latest | |
needs: [build_wheels, make_sdist] | |
name: Download Wheels | |
steps: | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v2 | |
- name: Flatten directory | |
run: | | |
find . -mindepth 2 -type f -exec mv {} . \; | |
find . -type d -empty -delete | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: all-dist | |
path: "./*" |