Skip to content

Commit

Permalink
release jobs should not run pytest, also added some more step names
Browse files Browse the repository at this point in the history
  • Loading branch information
bbelderbos committed Oct 6, 2021
1 parent 9e4d197 commit a7f5537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Install Poetry
- run: poetry install
- run: poetry run pytest
- name: Configure Poetry
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/
- run: poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
- name: Publish package
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- run: poetry install
- run: poetry run pytest
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
- name: Install Poetry
run: poetry install
- name: Configure Poetry
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
- name: Publish package
run: poetry publish --build

0 comments on commit a7f5537

Please sign in to comment.