Skip to content

Commit

Permalink
Use GitHub Action for publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Nov 26, 2020
1 parent b46952f commit 3169b4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Expand Up @@ -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 }}
7 changes: 2 additions & 5 deletions 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

0 comments on commit 3169b4c

Please sign in to comment.