All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 40s
27 lines
638 B
YAML
27 lines
638 B
YAML
name: "Python Script Test Pipeline"
|
|
run-name: ${{ gitea.actor }} running Python script test pipeline 🚀
|
|
on: [push]
|
|
branches:
|
|
- main # Trigger on push to the "main" branch
|
|
|
|
jobs:
|
|
Test_Python_Script:
|
|
runs-on: ubuntu-latest
|
|
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
|
|
|