File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 run : |
2727 ruff check .
2828
29+ - name : Type check with Mypy
30+ run : |
31+ mypy src/knx_telegram_store
32+
2933 - name : Run Tests with Pytest
3034 run : |
3135 export PYTHONPATH=src
Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ name : Build distribution 📦
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Set up Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.12"
18+ - name : Install pypa/build
19+ run : >-
20+ python3 -m
21+ pip install
22+ build
23+ --user
24+ - name : Build a binary wheel and a source tarball
25+ run : python3 -m build
26+ - name : Store the distribution packages
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : python-package-distributions
30+ path : dist/
31+
32+ publish-to-pypi :
33+ name : >-
34+ Publish Python 🐍 distribution 📦 to PyPI
35+ if : startsWith(github.ref, 'refs/tags/') # only publish on tag pushes
36+ needs :
37+ - build
38+ runs-on : ubuntu-latest
39+ environment :
40+ name : pypi
41+ url : https://pypi.org/p/knx-telegram-store
42+ permissions :
43+ id-token : write # IMPORTANT: mandatory for trusted publishing
44+ steps :
45+ - name : Download all the dists
46+ uses : actions/download-artifact@v4
47+ with :
48+ name : python-package-distributions
49+ path : dist/
50+ - name : Publish distribution 📦 to PyPI
51+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments