From 3cdfd3d7c7d6b93475d516cd9cb16285ac0cbdc8 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 30 Mar 2024 15:32:18 +0100 Subject: [PATCH] Unite test and publish --- .gitea/workflows/python-package.yaml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.gitea/workflows/python-package.yaml b/.gitea/workflows/python-package.yaml index a226053..d7d227a 100644 --- a/.gitea/workflows/python-package.yaml +++ b/.gitea/workflows/python-package.yaml @@ -10,7 +10,7 @@ on: required: true jobs: - test: + test-and-publish: runs-on: ubuntu-latest container: image: node:21-bookworm @@ -27,20 +27,6 @@ jobs: run: python3 -m pip install . --break-system-packages - name: Test Python Code run: python3 -m pytest test - publish: - runs-on: ubuntu-latest - container: - image: node:21-bookworm - needs: [test] - steps: - - name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}} - run: | - apt-get update - apt-get install -y python3 python3-pip - - name: Installing Python Dependencies - run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages - - name: Check out repository code - uses: actions/checkout@v3 - name: Build run: python3 -m build - name: Publish