diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 17d8b4e..7cd79a6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,5 +15,10 @@ jobs: uses: abatilo/actions-poetry@v2.1.0 with: poetry-version: 1.1.2 + - name: Run tests + run: make tests - name: Publish - run: make publish u="${{ secrets.PyPIUsername }}" p="${{ secrets.PyPIPassword }}" + uses: d1618033/gh-action-python-publish-using-poetry@master + with: + pypi_username: ${{ secrets.PYPI_USERNAME }} + pypi_password: ${{ secrets.PYPI_PASSWORD }} diff --git a/Makefile b/Makefile index 756f8f3..f8d1e16 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,8 @@ -install: - poetry install - tests: install poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203 poetry run black . --check poetry run isort . --profile=black poetry run pytest -publish: tests - poetry run poetry publish --build -u="${u}" -p="${p}" +install: + poetry install