From 6a889baf1a2dcba6449ee5fc74b9460e55161ac5 Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 27 May 2025 11:32:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20test=20on=20github=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-to-pypi.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 53bece6..cc1df83 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -4,8 +4,30 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI on: push jobs: + unit-test: + name: Run unit tests 🤾 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install dependencies + run: | + pip install poetry + poetry install --with dev + - name: Build a binary wheel and a source tarball + run: + poetry run pytest + build: name: Build distribution 📦 + needs: + - unit-test runs-on: ubuntu-latest steps: