This commit is contained in:
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user