From 5382ef9eafad4e88c0517148b301a85fe6402e26 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 30 Mar 2024 13:45:30 +0100 Subject: [PATCH] Support python 3.10 --- .gitea/workflows/python-package.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/python-package.yaml b/.gitea/workflows/python-package.yaml index dbb86d3..6325837 100644 --- a/.gitea/workflows/python-package.yaml +++ b/.gitea/workflows/python-package.yaml @@ -11,12 +11,12 @@ on: jobs: test: - runs-on: python-latest + runs-on: ubuntu-latest steps: - - name: Setting up python - run: | - apt-get update - apt-get install -y python3 python3-pip + - name: Setting up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' - name: Installing Python Dependencies run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest - name: Check out repository code @@ -26,14 +26,14 @@ jobs: - name: Test Python Code run: python3 -m pytest test publish: - runs-on: python-latest + runs-on: ubuntu-latest needs: [test] steps: - - name: Setting up python - run: | - apt-get update - apt-get install -y python3 python3-pip - - name: Installing dependencies + - name: Setting up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Installing Python Dependencies run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest - name: Check out repository code uses: actions/checkout@v3