Files
test/.github/workflows/main.yml
Max Mehl 013617f843
All checks were successful
Test CI / test (push) Successful in 2m6s
add toolcache
2025-04-02 22:12:28 +02:00

39 lines
995 B
YAML

name: Test CI
on:
push:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-22.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
# test2:
# runs-on: ubuntu-24.04
# steps:
# - run: pwd
# - run: whoami