PYTHON-4972 Bump minimum python to 3.9 #96
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: Dist | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
ref: | |
required: true | |
type: string | |
pull_request: | |
concurrency: | |
group: dist-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_wheels: | |
name: "Build Wheels ${{ matrix.buildplat }}" | |
runs-on: windows-2019 | |
strategy: | |
fail-fast: false | |
matrix: | |
buildplat: ["win_amd64", "win32"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: "cp3*-${{ matrix.buildplat }}" | |
CIBW_PRERELEASE_PYTHONS: "True" | |
CIBW_TEST_COMMAND: "python -c \"import winkerberos;print(winkerberos.__version__)\"" | |
- name: Assert all versions in wheelhouse | |
if: ${{ ! startsWith(matrix.buildplat[1], 'macos') }} | |
run: | | |
ls wheelhouse/*cp38*.whl | |
ls wheelhouse/*cp39*.whl | |
ls wheelhouse/*cp310*.whl | |
ls wheelhouse/*cp311*.whl | |
ls wheelhouse/*cp312*.whl | |
ls wheelhouse/*cp313*.whl | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheel-${{ matrix.buildplat }} | |
path: ./wheelhouse/*.whl | |
make_sdist: | |
name: Make SDist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref }} | |
- uses: actions/setup-python@v5 | |
with: | |
# Build sdist on lowest supported Python | |
python-version: '3.9' | |
- name: Build SDist | |
run: | | |
pip install check-manifest build | |
check-manifest -v | |
python -m build --sdist . | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "sdist" | |
path: dist/*.tar.gz | |
collect_dist: | |
runs-on: ubuntu-latest | |
needs: [build_wheels, make_sdist] | |
name: Download Wheels | |
steps: | |
- name: Download all workflow run artifacts | |
uses: actions/download-artifact@v4 | |
- name: Flatten directory | |
working-directory: . | |
run: | | |
find . -mindepth 2 -type f -exec mv {} . \; | |
find . -type d -empty -delete | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: all-dist-${{ github.run_id }} | |
path: "./*" |