From 71d7f03e7c8fa77c17fd751ffc910bc9b85715d8 Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Tue, 30 Jan 2024 03:32:25 +0530 Subject: [PATCH] CI: Add debug test --- .github/workflows/CI.yml | 40 ++++++++++++++++++++++++++++++++++++++++ tests/expr2.f90 | 11 +++++++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/expr2.f90 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0a91c6e..469a0b0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -231,3 +231,43 @@ jobs: cd scipy/ micromamba activate scipy-dev python dev.py test -t scipy.interpolate -v + + misc: + name: Misc Test ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["macos-latest", "ubuntu-latest"] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: mamba-org/setup-micromamba@v1 + with: + environment-file: environment.yml + create-args: >- + lfortran=${{ env.LFORTRAN_VERSION }} + llvmdev=11.1.0 + + - uses: hendrikmuhs/ccache-action@main + with: + variant: sccache + key: ${{ github.job }}-${{ matrix.os }} + + - name: Print installed packages information + shell: bash -e -x -l {0} + run: | + which lfortran + micromamba env list + micromamba activate lf + micromamba list + which lfortran + + - name: Run LFortran Misc Tests + if: ${{ !startsWith(matrix.os, 'windows-2019') }} + shell: bash -e -x -l {0} + run: | + lfortran -g --debug-with-line-column tests/expr2.f90 + ls -l diff --git a/tests/expr2.f90 b/tests/expr2.f90 new file mode 100644 index 0000000..09e050b --- /dev/null +++ b/tests/expr2.f90 @@ -0,0 +1,11 @@ +program expr2 +implicit none + +integer :: x + +x = (2+3)*5 +print *, x + +error stop + +end program