@@ -11,118 +11,8 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
- lint :
15
- runs-on : ubuntu-latest
16
- steps :
17
- - uses : actions/checkout@v3
18
- - uses : actions/setup-python@v5
19
- with :
20
- python-version : " 3.9"
21
- - uses : pre-commit/action@v2.0.3
22
-
23
- # Make sure commit messages follow the conventional commits convention:
24
- # https://www.conventionalcommits.org
25
- commitlint :
26
- name : Lint Commit Messages
27
- runs-on : ubuntu-latest
28
- steps :
29
- - uses : actions/checkout@v3
30
- with :
31
- fetch-depth : 0
32
- - uses : wagoid/commitlint-github-action@v5
33
-
34
- test :
35
- strategy :
36
- fail-fast : false
37
- matrix :
38
- python-version :
39
- - " 3.8"
40
- - " 3.9"
41
- - " 3.10"
42
- - " 3.11"
43
- - " 3.12"
44
- - " 3.13"
45
- - " pypy-3.8"
46
- - " pypy-3.9"
47
- os :
48
- - ubuntu-latest
49
- - macos-latest
50
- - windows-latest
51
- extension :
52
- - " skip_cython"
53
- - " use_cython"
54
- exclude :
55
- - os : macos-latest
56
- extension : use_cython
57
- - os : windows-latest
58
- extension : use_cython
59
- - os : windows-latest
60
- python-version : " pypy-3.8"
61
- - os : windows-latest
62
- python-version : " pypy-3.9"
63
- - os : macos-latest
64
- python-version : " pypy-3.8"
65
- - os : macos-latest
66
- python-version : " pypy-3.9"
67
- runs-on : ${{ matrix.os }}
68
- steps :
69
- - uses : actions/checkout@v3
70
- - name : Install poetry
71
- run : pipx install poetry
72
- - name : Set up Python
73
- uses : actions/setup-python@v5
74
- with :
75
- python-version : ${{ matrix.python-version }}
76
- cache : " poetry"
77
- allow-prereleases : true
78
- - name : Install Dependencies no cython
79
- if : ${{ matrix.extension == 'skip_cython' }}
80
- env :
81
- SKIP_CYTHON : 1
82
- run : poetry install --only=main,dev
83
- - name : Install Dependencies with cython
84
- if : ${{ matrix.extension != 'skip_cython' }}
85
- env :
86
- REQUIRE_CYTHON : 1
87
- run : poetry install --only=main,dev
88
- - name : Test with Pytest
89
- run : poetry run pytest --durations=20 --timeout=60 -v --cov=zeroconf --cov-branch --cov-report xml --cov-report html --cov-report term-missing tests
90
- - name : Upload coverage to Codecov
91
- uses : codecov/codecov-action@v3
92
- with :
93
- token : ${{ secrets.CODECOV_TOKEN }}
94
-
95
- release :
96
- runs-on : ubuntu-latest
97
- environment : release
98
- if : github.ref == 'refs/heads/master'
99
- needs :
100
- - test
101
- - lint
102
- - commitlint
103
-
104
- steps :
105
- - uses : actions/checkout@v3
106
- with :
107
- fetch-depth : 0
108
-
109
- # Run semantic release:
110
- # - Update CHANGELOG.md
111
- # - Update version in code
112
- # - Create git tag
113
- # - Create GitHub release
114
- # - Publish to PyPI
115
- - name : Python Semantic Release
116
- uses : relekang/python-semantic-release@v7.34.6
117
- # env:
118
- # REPOSITORY_URL: https://test.pypi.org/legacy/
119
- # TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
120
- with :
121
- github_token : ${{ secrets.GITHUB_TOKEN }}
122
- pypi_token : ${{ secrets.PYPI_TOKEN }}
123
14
124
15
build_wheels :
125
- needs : [release]
126
16
127
17
name : Build wheels on ${{ matrix.os }}
128
18
runs-on : ${{ matrix.os }}
@@ -174,23 +64,3 @@ jobs:
174
64
- uses : actions/upload-artifact@v3
175
65
with :
176
66
path : ./wheelhouse/*.whl
177
-
178
- upload_pypi :
179
- needs : [build_wheels]
180
- runs-on : ubuntu-latest
181
- environment : release
182
-
183
- steps :
184
- - uses : actions/download-artifact@v3
185
- with :
186
- # unpacks default artifact into dist/
187
- # if `name: artifact` is omitted, the action will create extra parent dir
188
- name : artifact
189
- path : dist
190
-
191
- - uses : pypa/gh-action-pypi-publish@v1.5.0
192
- with :
193
- user : __token__
194
- password : ${{ secrets.PYPI_TOKEN }}
195
-
196
- # To test: repository_url: https://test.pypi.org/legacy/
0 commit comments