Skip to content

Commit 57a55c7

Browse files
author
hvalev
committed
updated actions, using codecov token, using action for poetry publishing
1 parent b193e68 commit 57a55c7

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

0 commit comments

Comments
 (0)