try Dockerfile approach
All checks were successful
test / test (pull_request) Successful in 44s

This commit is contained in:
Dan Anglin 2024-08-16 06:05:06 +01:00
parent bedb3a4447
commit 0c28a1186d
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 15 additions and 6 deletions

View file

@ -0,0 +1,5 @@
FROM python:3.12-alpine3.20
ADD *.sh /
ENTRYPOINT ["/entrypoint.sh"]

View file

@ -0,0 +1,6 @@
#!/bin/sh
set -e
python3 -V
ls -la

View file

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