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:
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