From 283e6cedd135e9672688b2101e68b564609a00da Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 12 Dec 2023 13:45:19 +0100 Subject: [PATCH] Setting up python --- .gitea/workflows/python-package.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/python-package.yaml b/.gitea/workflows/python-package.yaml index 29f2d21..21eadb3 100644 --- a/.gitea/workflows/python-package.yaml +++ b/.gitea/workflows/python-package.yaml @@ -14,8 +14,12 @@ jobs: runs-on: ubuntu-latest if: ${{ hashFiles('test/*.py') != '' }} steps: - - name: Install test dependencies - run: pip install -y pytest + - name: Setting up python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Installing dependencies + run: python -m pip install --upgrade pip setuptools wheel pytest - name: Check out repository code uses: actions/checkout@v3 - name: Build @@ -25,8 +29,12 @@ jobs: publish: runs-on: ubuntu-latest steps: - - name: Install build dependencies - run: pip install -y build twine + - name: Setting up python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Installing dependencies + run: python -m pip install --upgrade pip setuptools wheel build twine - name: Check out repository code uses: actions/checkout@v3 - name: Build