Changed Action file 2
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
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:
|
||||
@@ -10,16 +8,13 @@ jobs:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user