From 153e768a3fe7919c83cb839192a8c77cc88f0d1a Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:09:01 +0530 Subject: [PATCH 1/6] Do not test ctest There are no ctest in installed binary. So they need not be run --- .github/workflows/CI.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f7a514e..00880fd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,12 +42,6 @@ jobs: git fetch https://github.com/lcompilers/lpython.git --tags -f git checkout v0.20.0 - - name: Run LPython Ctest - shell: bash -e -l {0} - run: | - cd lpython - ctest - - name: Run LPython Integration Tests shell: bash -e -l {0} run: | From 531bc5fd3f8a221089a9fcb0baa7575343bbd029 Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:10:44 +0530 Subject: [PATCH 2/6] Do not run tests on Windows --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 00880fd..bbb067b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -43,18 +43,21 @@ jobs: git checkout v0.20.0 - name: Run LPython Integration Tests + if: ${{ !startsWith(matrix.os, 'windows-2019') }} shell: bash -e -l {0} run: | cd lpython/integration_tests ./run_tests.py -b llvm c wasm - name: Run LPython Fast Integration Tests + if: ${{ !startsWith(matrix.os, 'windows-2019') }} shell: bash -e -l {0} run: | cd lpython/integration_tests ./run_tests.py -b llvm c wasm -f - name: Run LPython Reference Tests + if: ${{ !startsWith(matrix.os, 'windows-2019') }} shell: bash -e -l {0} run: | cd lpython From f39b13ec2af43e74d69e5fa9db744f43e0581f6e Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:50:26 +0530 Subject: [PATCH 3/6] Fix environment name to use lp --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 17101f7..65060e1 100644 --- a/environment.yml +++ b/environment.yml @@ -1,4 +1,4 @@ -name: lf +name: lp channels: - conda-forge dependencies: From 54fe41b008ec7e9352f8ef6480897a8effd12d33 Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:50:47 +0530 Subject: [PATCH 4/6] Print information related to conda --- .github/workflows/CI.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bbb067b..82dd230 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,6 +35,14 @@ jobs: variant: sccache key: ${{ github.job }}-${{ matrix.os }} + - name: Print installed packages information + shell: bash -e -l {0} + run: | + which lpython + micromamba env list + micromamba activate lp + which lpython + - name: Clone LPython Source Repository shell: bash -e -l {0} run: | From 473c49ea4c7aa7f348ca25bfdef54c46c2099c61 Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:52:25 +0530 Subject: [PATCH 5/6] Use -x option for bash --- .github/workflows/CI.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 82dd230..c480aac 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,7 +36,7 @@ jobs: key: ${{ github.job }}-${{ matrix.os }} - name: Print installed packages information - shell: bash -e -l {0} + shell: bash -e -x -l {0} run: | which lpython micromamba env list @@ -44,7 +44,7 @@ jobs: which lpython - name: Clone LPython Source Repository - shell: bash -e -l {0} + shell: bash -e -x -l {0} run: | git clone https://github.com/lcompilers/lpython.git git fetch https://github.com/lcompilers/lpython.git --tags -f @@ -52,21 +52,21 @@ jobs: - name: Run LPython Integration Tests if: ${{ !startsWith(matrix.os, 'windows-2019') }} - shell: bash -e -l {0} + shell: bash -e -x -l {0} run: | cd lpython/integration_tests ./run_tests.py -b llvm c wasm - name: Run LPython Fast Integration Tests if: ${{ !startsWith(matrix.os, 'windows-2019') }} - shell: bash -e -l {0} + shell: bash -e -x -l {0} run: | cd lpython/integration_tests ./run_tests.py -b llvm c wasm -f - name: Run LPython Reference Tests if: ${{ !startsWith(matrix.os, 'windows-2019') }} - shell: bash -e -l {0} + shell: bash -e -x -l {0} run: | cd lpython ./run_tests.py --skip-run-with-dbg From cd65060574f6e8a98e06ce370e68f2cbd4d054ae Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Sun, 8 Oct 2023 21:55:23 +0530 Subject: [PATCH 6/6] Move to lpython before fetch and checkout --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c480aac..16a1b75 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -47,6 +47,7 @@ jobs: shell: bash -e -x -l {0} run: | git clone https://github.com/lcompilers/lpython.git + cd lpython git fetch https://github.com/lcompilers/lpython.git --tags -f git checkout v0.20.0