Skip to content

Merge pull request #401 from phargogh/bugfix/396-compatibility-with-n… #730

Merge pull request #401 from phargogh/bugfix/396-compatibility-with-n…

Merge pull request #401 from phargogh/bugfix/396-compatibility-with-n… #730

name: Python distributions
on: [push, pull_request]
jobs:
build-wheels:
name: Wheel
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
# Fetch all history so that setuptools_scm can build the correct version string.
fetch-depth: 0
- name: Fetch git tags
run: git fetch origin +refs/tags/*:refs/tags/*
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install build
- name: Build wheel
run: python -m build --wheel
- uses: actions/upload-artifact@v1
with:
name: Wheel for ${{ matrix.os }} ${{ matrix.python-version }}
path: dist
build-sdist:
name: Source Dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch all history so that setuptools_scm can build the correct version string.
fetch-depth: 0
- name: Fetch git tags
run: git fetch origin +refs/tags/*:refs/tags/*
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: python -m pip install build
- name: Build source distribution
run: python -m build --sdist
- uses: actions/upload-artifact@v1
with:
name: Source distribution
path: dist