Skip to content

Commit

Permalink
fix: Added codecov to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paradise1260 committed Jan 27, 2022
1 parent 277ac52 commit 675c894
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,27 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release publish
# Step 5. Publish to TestPyPI
# step 5. Update codecov
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# Step 6. Publish to TestPyPI
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
# Step 6. Test install from TestPyPI
# Step 7. Test install from TestPyPI
- name: Test install from TestPyPI
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
textfeatureinfo
# Step 7. Publish to PyPI
# Step 8. Publish to PyPI
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit 675c894

Please sign in to comment.