@@ -16,10 +16,10 @@ jobs:
1616 python-version : [3.8, 3.9, "3.10", "3.11", "3.12"]
1717 steps :
1818 - name : Checkout code
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v4
2020
2121 - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v2
22+ uses : actions/setup-python@v5
2323 with :
2424 python-version : ${{ matrix.python-version }}
2525
@@ -53,10 +53,10 @@ jobs:
5353 needs : test
5454 steps :
5555 - name : Checkout code
56- uses : actions/checkout@v2
56+ uses : actions/checkout@v4
5757
5858 - name : Set up Python 3.9
59- uses : actions/setup-python@v2
59+ uses : actions/setup-python@v5
6060 with :
6161 python-version : 3.9
6262
@@ -75,16 +75,18 @@ jobs:
7575 run : |
7676 poetry install
7777
78- - name : Build and publish with Poetry
79- run : |
80- poetry build
81- poetry publish --username __token__ --password ${{ secrets.pypi_token }}
78+ - name : Build and publish to pypi
79+ uses : JRubics/poetry-publish@v2.0
80+ with :
81+ pypi_token : ${{ secrets.PYPI_PASSWORD }}
8282
8383 - name : Test with pytest and coverage
8484 run : |
8585 poetry run pytest --cov=./py_markdown_table/ --cov-report=xml
8686
8787 - name : Upload coverage to Codecov
88- uses : codecov/codecov-action@v3
88+ uses : codecov/codecov-action@v4
89+ env :
90+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
8991 with :
9092 fail_ci_if_error : false
0 commit comments