Skip to content

Commit

Permalink
CI: Add debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jan 29, 2024
1 parent ae68aa8 commit e6b956d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions tests/expr2.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
program expr2
implicit none

integer :: x

x = (2+3)*5
print *, x

end program

0 comments on commit e6b956d

Please sign in to comment.