From 877b4129ac72554f81468891fa3a83d6cb028257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20R=2E=20Puente-Uriona?= Date: Sat, 10 Feb 2024 14:56:10 +0100 Subject: [PATCH] Create CI.yml. --- .github/workflows/CI.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..3afce9b --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,34 @@ +name: Testing suite + +on: + schedule: + - cron: "0 11 * * 1" + push: + branches: + - main + pull_request: + workflow_dispatch: +jobs: + run: + runs-on: ubuntu-22.04 + defaults: + run: + shell: bash -l {0} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup gfortran + run: | + sudo apt-get update + sudo apt-get install \ + gfortran \ + - name: Setup FPM + uses: fortran-lang/setup-fpm@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Build WannInt + run: | + fpm run main + - name: Test WannInt + run: | + fpm test