29 lines
772 B
YAML
29 lines
772 B
YAML
name: "Python Script Test Pipeline"
|
|
run-name: ${{ gitea.actor }} running Python script test pipeline 🚀
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
# 14:50 UTC is 15:50 in Austria
|
|
- cron: '50 14 * * *'
|
|
|
|
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: "Install Python Libraries"
|
|
run: |
|
|
pip3 install numpy imageio scikit-image scipy
|
|
- name: "Run Python Script"
|
|
run: |
|
|
python3 interpolation_error.py > output.txt
|
|
- name: "Compare Output"
|
|
run: |
|
|
diff output.txt reference_output.txt
|