File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,18 @@ name: Publish Python Package
2
2
3
3
on :
4
4
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
7
8
8
9
jobs :
9
10
build-and-publish :
10
11
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 }}
12
17
13
18
steps :
14
19
- name : Check out the repository
@@ -17,15 +22,25 @@ jobs:
17
22
- name : Set up Python
18
23
uses : actions/setup-python@v5
19
24
with :
20
- python-version : ' 3.9 ' # Change to your required version
25
+ python-version : ${{ matrix.python- version }}
21
26
22
27
- name : Install dependencies
23
28
run : |
24
29
python -m pip install --upgrade pip
25
30
pip install build twine
26
31
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
29
44
30
45
- name : Publish package to PyPI
31
46
env :
Original file line number Diff line number Diff line change 13
13
14
14
setup (
15
15
name = "pycirclemedianfilter" ,
16
- version = "0.1.1 " ,
16
+ version = "0.1.4 " ,
17
17
author = "Martin Storath" ,
18
18
author_email = "martin.storath@thws.de" ,
19
19
description = "A Circle Median Filter package for Python" ,
You can’t perform that action at this time.
0 commit comments