From 9739043c0edf76b66c29d6b4d9605ea0408dc867 Mon Sep 17 00:00:00 2001 From: takline Date: Thu, 8 Aug 2024 13:39:26 +0000 Subject: [PATCH] adding unit tests --- .github/workflows/publish-to-pypi.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml index abe40b7..e6d810d 100644 --- a/.github/workflows/publish-to-pypi.yaml +++ b/.github/workflows/publish-to-pypi.yaml @@ -4,9 +4,31 @@ on: - 'v*' name: publish jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + - name: Run tests + run: | + pytest tests/ build: name: Build distribution 📦 runs-on: ubuntu-latest + needs: test steps: - uses: actions/checkout@v4 - name: Set up Python