From 765e9851f72bdcb8914dd31cc75629a1c128b5eb Mon Sep 17 00:00:00 2001 From: RenChu Wang Date: Thu, 28 Nov 2024 23:30:30 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9B=A9=EF=B8=8F=20Mypy=20path=20and=20build?= =?UTF-8?q?=20instruction=20update.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it more inline with the flat layout used with poetry. --- .github/workflows/release.yaml | 12 +++++++++--- .github/workflows/typecheck.yaml | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b9fa197..bdf1c53 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,8 @@ name: Publish -on: workflow_dispatch +on: + push: + tags: + - v* jobs: pypi-publish: @@ -26,5 +29,8 @@ jobs: - name: âŦ‡ī¸ Python Dependencies run: poetry install --sync - - name: 🚧 Building distributions. - run: poetry publish --build + - name: đŸĒļ Build with poetry + run: poetry build + + - name: 📰 Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/typecheck.yaml b/.github/workflows/typecheck.yaml index 8f06f0b..c30087a 100644 --- a/.github/workflows/typecheck.yaml +++ b/.github/workflows/typecheck.yaml @@ -23,7 +23,7 @@ jobs: run: poetry install --sync - name: đŸ“Ļ Install type stubs - run: poetry run mypy src --install-types --non-interactive + run: poetry run mypy . --install-types --non-interactive - name: 🏃 mypy - run: poetry run mypy src + run: poetry run mypy .