Skip to content

Commit

Permalink
Add github workflow action
Browse files Browse the repository at this point in the history
Added a workflow action to verify the calculations.

Signed-off-by: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
  • Loading branch information
tzstoyanov committed Jan 25, 2024
1 parent 20f9ee2 commit 93bbb70
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: iRainCalc CI

on:
push:
branches: [main]
schedule:
- cron: '0 15 * * THU'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
working-directory: ${{runner.workspace}}/
shell: bash
run: |
sudo apt-get update
sudo apt-get install python3.10
sudo apt-get install libblas3 liblapack3 liblapack-dev libblas-dev -y
cd ${{runner.workspace}}/iraincalc/
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mkdir out
./iraincalc.py -l ./test/links.csv -s ./test/data.csv -p ./out/dd
diff ./out/ ./test/out

0 comments on commit 93bbb70

Please sign in to comment.