Add new workflow and disable other tests #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Debug Disabled Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| debug_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: ci/environment.yml | |
| create-args: >- | |
| python=3.10 | |
| bison=3.4 | |
| - name: Print Debug Information | |
| shell: bash -e -l {0} | |
| run: | | |
| echo "=== System Information ===" | |
| uname -a | |
| free -h | |
| df -h | |
| echo "=== Micromamba Information ===" | |
| micromamba --version | |
| micromamba info | |
| echo "=== Compiler Versions ===" | |
| gfortran --version | |
| gcc --version | |
| g++ --version | |
| clang --version | |
| python --version | |
| cmake --version | |
| ninja --version | |
| echo "=== Compiler Locations ===" | |
| which gfortran | |
| which gcc | |
| which g++ | |
| which clang | |
| which python | |
| which cmake | |
| which ninja | |
| echo "=== Environment ===" | |
| env | sort | |
| echo "=== Python Dependencies ===" | |
| pip list | |
| - uses: hendrikmuhs/ccache-action@main | |
| with: | |
| variant: sccache | |
| key: ${{ github.job }}-ubuntu | |
| - name: Build Linux | |
| shell: bash -e -l {0} | |
| run: | | |
| ./build0.sh | |
| export LPYTHON_TEST_DEBUG=1 | |
| export DOCTEST_CONFIG_SUPER_QUIET=1 | |
| cmake . -GNinja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG -DDEBUG_ERROR_RENDERING" \ | |
| -DWITH_LLVM=yes \ | |
| -DLFORTRAN_BUILD_ALL=yes \ | |
| -DWITH_STACKTRACE=no \ | |
| -DWITH_RUNTIME_STACKTRACE=yes \ | |
| -DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \ | |
| -DCMAKE_INSTALL_PREFIX=`pwd`/inst \ | |
| -DCMAKE_C_COMPILER_LAUNCHER=sccache \ | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=sccache | |
| cmake --build . -j16 --target install | |
| - name: Run Ctest | |
| if: Always() | |
| shell: bash -e -l {0} | |
| run: | | |
| # Print test file contents for debugging | |
| echo "=== Test Environment ===" | |
| ls -la src/lpython/tests/ | |
| cat src/lpython/tests/test_error_rendering.cpp | |
| # Run tests with more verbosity | |
| export LPYTHON_TEST_DEBUG=1 | |
| export DOCTEST_CONFIG_SUPER_QUIET=1 | |
| CTEST_OUTPUT_ON_FAILURE=1 ctest -V --rerun-failed --output-on-failure | |
| - name: Run Reference Tests | |
| if: Always() | |
| shell: bash -e -l {0} | |
| run: | | |
| ./run_tests.py -s | |
| - name: Run Integration Tests | |
| if: Always() | |
| shell: bash -e -l {0} | |
| run: | | |
| cd integration_tests | |
| ./run_tests.py -b llvm | |
| ./run_tests.py -b llvm -f |