Skip to content

Commit 7aad271

Browse files
committed
create pypi publish github action
1 parent 4840eb2 commit 7aad271

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/pypi.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: pypi
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-22.04
13+
strategy:
14+
matrix:
15+
python:
16+
- env: py38
17+
version: '3.8'
18+
- env: py310
19+
version: '3.10'
20+
- env: py311
21+
version: '3.11'
22+
httplib:
23+
- default
24+
- fido
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: ${{ matrix.python.version }}
30+
- run: pip install tox
31+
- run: tox -e ${{ matrix.python.env }}-${{ matrix.httplib }}
32+
pypi:
33+
needs: test
34+
runs-on: ubuntu-22.04
35+
permissions:
36+
id-token: write
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.8'
42+
- run: python setup.py sdist
43+
- uses: pypa/[email protected]

0 commit comments

Comments
 (0)