@@ -12,10 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- python-version : ["3.7", "3.8", "3.9", "3.10" ]
15
+ python-version : ['3.8', '3.90', '3.10', '3.11', '3.12' ]
16
16
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
20
20
- name : Set up Python ${{ matrix.python-version }}
21
21
uses : actions/setup-python@v5
26
26
run : |
27
27
python -m pip install --upgrade pip
28
28
pip install tox tox-gh-actions
29
+ python -m pip install poetry poetry poetry-plugin-export
29
30
30
31
- name : Test with tox
31
32
run : tox
34
35
runs-on : ubuntu-latest
35
36
needs : test
36
37
steps :
37
- - uses : actions/checkout@v3
38
+ - uses : actions/checkout@v4
38
39
39
40
- name : Set up Python
40
41
uses : actions/setup-python@v5
@@ -44,12 +45,11 @@ jobs:
44
45
- name : Install dependencies
45
46
run : |
46
47
python -m pip install --upgrade pip
47
- pip install setuptools wheel twine
48
+ python -m pip install poetry poetry poetry-plugin-export
48
49
49
50
- name : Build and publish
50
51
env :
51
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
52
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
52
+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
53
53
run : |
54
- python setup.py sdist bdist_wheel
55
- twine upload dist/*
54
+ poetry build
55
+ poetry publish
0 commit comments