Files
Test-Runner/.gitea/workflows/python-test.yml
thecoderatekid 8b248ad5ef
Some checks failed
CI Demo / build (push) Successful in 4s
Python Test / python-hello (push) Has been cancelled
Java Test / java-hello (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
Add .gitea/workflows/python-test.yml
2025-08-07 18:34:08 +00:00

24 lines
581 B
YAML

name: Python Test
on: [push]
jobs:
python-hello:
runs-on: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python 3 if missing
run: |
if ! command -v python3 >/dev/null; then
sudo apt-get update
sudo apt-get install -y python3 python3-venv python3-pip
fi
- name: Verify Python installation
run: python3 --version
- name: Run “Hello, Python!”
run: |
echo 'print("Hello, Python!")' > main.py
python3 main.py