From a58ae3897e9704df2c82d805edc214e37daf6a27 Mon Sep 17 00:00:00 2001 From: "Tzvetomir Stoyanov (VMware)" Date: Thu, 25 Jan 2024 15:15:43 +0200 Subject: [PATCH] Add github workflow action Added a workflow action to verify the calculations. Signed-off-by: Tzvetomir Stoyanov --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2b59ee8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +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