try setup-python
All checks were successful
Test CI / test (push) Successful in 8s

This commit is contained in:
2025-04-02 22:28:26 +02:00
parent 013617f843
commit 60ea094a0d

View File

@@ -8,28 +8,18 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
container: # container:
image: ghcr.io/mxmehl/python-tests-image:3.12 # image: ghcr.io/mxmehl/python-tests-image:3.12
env: # env:
RUNNER_TOOL_CACHE: /toolcache # RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- name: Checkout - uses: actions/checkout@v4
uses: actions/checkout@v4 - name: Set up Python 3.10
- name: Hash poetry.lock uses: actions/setup-python@v5
id: hash with:
run: | python-version: "3.10"
echo "poetry_hash=$(md5sum poetry.lock | cut -c -32)" >> $GITHUB_OUTPUT - run: python --version
- 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
# test2: # test2:
# runs-on: ubuntu-24.04 # runs-on: ubuntu-24.04