From 60ea094a0da2c4f085cc11fc71d2e10c9acdd711 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 2 Apr 2025 22:28:26 +0200 Subject: [PATCH] try setup-python --- .github/workflows/main.yml | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e932350..689f3fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,28 +8,18 @@ on: jobs: test: - runs-on: ubuntu-22.04 - container: - image: ghcr.io/mxmehl/python-tests-image:3.12 - env: - RUNNER_TOOL_CACHE: /toolcache + runs-on: ubuntu-24.04 + # container: + # image: ghcr.io/mxmehl/python-tests-image:3.12 + # env: + # RUNNER_TOOL_CACHE: /toolcache steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Hash poetry.lock - id: hash - run: | - echo "poetry_hash=$(md5sum poetry.lock | cut -c -32)" >> $GITHUB_OUTPUT - - run: echo "${{ steps.hash.outputs.poetry_hash }}" - - name: Cache poetry - uses: https://github.com/actions/cache@v3 # Action cache - with: # specify with your GOMODCACHE and GOCACHE - path: |- - /root/.cache/pypoetry/virtualenvs - key: poetry_cache-${{ steps.hash.outputs.poetry_hash }} - restore-keys: |- - poetry_cache-${{ steps.hash.outputs.poetry_hash }} - - run: poetry install --verbose + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - run: python --version # test2: # runs-on: ubuntu-24.04