Skip to content

Commit 57070a3

Browse files
committed
wheels publish test
1 parent 0e62339 commit 57070a3

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/build_wheels.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ name: Publish Python Package
22

33
on:
44
push:
5-
tags:
6-
- 'v*' # Runs only when a new tag starting with "v" is pushed
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ] # Runs only when a new tag starting with "v" is pushed
78

89
jobs:
910
build-and-publish:
1011
name: Build and Publish Package
11-
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
runs-on: ${{ matrix.os }}
1217

1318
steps:
1419
- name: Check out the repository
@@ -17,15 +22,25 @@ jobs:
1722
- name: Set up Python
1823
uses: actions/setup-python@v5
1924
with:
20-
python-version: '3.9' # Change to your required version
25+
python-version: ${{ matrix.python-version }}
2126

2227
- name: Install dependencies
2328
run: |
2429
python -m pip install --upgrade pip
2530
pip install build twine
2631
27-
- name: Build package
28-
run: python -m build
32+
- name: Build Wheels
33+
env:
34+
CXXFLAGS: "-std=c++11"
35+
CIBW_SKIP: "pypy*"
36+
CIBW_BUILD: "cp*"
37+
run: cibuildwheel --output-dir wheelhouse .
38+
39+
- name: Upload Wheels Artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}-${{ github.run_number }}
43+
path: wheelhouse/*.whl
2944

3045
- name: Publish package to PyPI
3146
env:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="pycirclemedianfilter",
16-
version="0.1.1",
16+
version="0.1.4",
1717
author="Martin Storath",
1818
author_email="martin.storath@thws.de",
1919
description="A Circle Median Filter package for Python",

0 commit comments

Comments
 (0)