From 7b03643682ba540271ec6b6dee3c3dc334aba350 Mon Sep 17 00:00:00 2001 From: Daniel Munch Date: Sun, 14 Jan 2024 00:26:37 +0100 Subject: [PATCH] Update and rename pytest.yml to testpublish.yml --- .github/workflows/{pytest.yml => testpublish.yml} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename .github/workflows/{pytest.yml => testpublish.yml} (84%) diff --git a/.github/workflows/pytest.yml b/.github/workflows/testpublish.yml similarity index 84% rename from .github/workflows/pytest.yml rename to .github/workflows/testpublish.yml index 5583d00..c2b38a5 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/testpublish.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python package +name: test and publish on: push: @@ -32,3 +32,7 @@ jobs: - name: Test with pytest run: | pytest + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.17 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }}