From f7c767395fc08b87d671789027bb057e4a0cf4c0 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 8 Jun 2022 12:01:06 -0500 Subject: [PATCH] Run qtconsole test suite as a another downstream project --- .github/workflows/downstream.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index deab0631b..9a9c98e9c 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -79,3 +79,40 @@ jobs: conda install -c conda-forge xeus-cling pip install -e ".[test]" python -m unittest -v + + qtconsole: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + architecture: 'x64' + + - name: Install System Packages + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev + + - name: Install qtconsole dependencies + shell: bash -l {0} + run: | + cd ${GITHUB_WORKSPACE}/.. + git clone https://github.com/jupyter/qtconsole.git + cd qtconsole + ${pythonLocation}/bin/python -m pip install -e ".[test]" + ${pythonLocation}/bin/python -m pip install pyqt5 + + - name: Install Jupyter-Client changes + shell: bash -l {0} + run: ${pythonLocation}/bin/python -m pip install -e . + + - name: Test qtconsole + shell: bash -l {0} + run: | + cd ${GITHUB_WORKSPACE}/../qtconsole + xvfb-run --auto-servernum ${pythonLocation}/bin/python -m pytest -x -vv -s --full-trace --color=yes qtconsole