diff --git a/.forgejo/actions/python/Dockerfile b/.forgejo/actions/python/Dockerfile new file mode 100644 index 0000000..6542420 --- /dev/null +++ b/.forgejo/actions/python/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.12-alpine3.20 + +ADD *.sh / + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/.forgejo/actions/python/entrypoint.sh b/.forgejo/actions/python/entrypoint.sh new file mode 100755 index 0000000..331aa04 --- /dev/null +++ b/.forgejo/actions/python/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +python3 -V +ls -la diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index 5a27457..78eb2c6 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -14,9 +14,7 @@ jobs: steps: - name: Checkout Repository uses: https://code.forgejo.org/actions/checkout@v4 - - name: Install Python 3 - uses: https://code.forgejo.org/actions/setup-python@v5 - #with: - # python-version: '3.12.4' - - name: Test Code - run: python tests.py + - name: Test Python Installation + uses: ./.forgejo/actions/python + #- name: Test Code + # run: python tests.py