Update .gitea/workflows/gitea.yaml
This commit is contained in:
@@ -5,6 +5,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
# 14:50 UTC is 15:50 in Austria
|
# 14:50 UTC is 15:50 in Austria
|
||||||
|
# You can change this back to '0 2 * * *' (3 AM) once testing is done
|
||||||
- cron: '50 14 * * *'
|
- cron: '50 14 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -12,17 +13,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout Code"
|
- name: "Checkout Code"
|
||||||
uses: actions/checkout@v3 # Checkout the code
|
uses: actions/checkout@v3
|
||||||
- name: "Set up Python"
|
|
||||||
|
- name: "Install Python & Libraries"
|
||||||
|
# Using apt is much faster on Pi and avoids PEP 668 errors
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y python3 python3-pip
|
apt-get install -y python3 python3-pip python3-numpy python3-imageio python3-skimage python3-scipy
|
||||||
- name: "Install Python Libraries"
|
|
||||||
run: |
|
|
||||||
pip3 install numpy imageio scikit-image scipy
|
|
||||||
- name: "Run Python Script"
|
- name: "Run Python Script"
|
||||||
run: |
|
run: |
|
||||||
python3 interpolation_error.py > output.txt
|
python3 interpolation_error.py > output.txt
|
||||||
|
|
||||||
- name: "Compare Output"
|
- name: "Compare Output"
|
||||||
run: |
|
run: |
|
||||||
diff output.txt reference_output.txt
|
diff output.txt reference_output.txt
|
||||||
Reference in New Issue
Block a user