added runner file

This commit is contained in:
2024-12-02 20:28:10 +01:00
parent e340d6b99e
commit 63153f1101

28
.gitea.yml Normal file
View File

@@ -0,0 +1,28 @@
# .gitea.yml
version: "1"
name: "Python Script Test Pipeline"
on:
push:
branches:
- main # Trigger on push to the "main" branch
jobs:
test_python_script:
runs-on: [self-hosted]
steps:
- name: "Checkout Code"
uses: actions/checkout@v3 # Checkout the code
- name: "Set up Python"
run: |
apt-get update
apt-get install -y python3 python3-pip
- name: "Run Python Script"
run: |
python3 script.py > output.txt
- name: "Compare Output"
run: |
diff output.txt reference_output.txt