From 100151f6e77a11e6a75c241bd0a7538ae9d4d001 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 | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index deab0631b..89edc272a 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -79,3 +79,48 @@ 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: Base Setup + uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + + - 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: Setup conda ${{ matrix.python-version }} + uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: qtconsole_test + auto-update-conda: false + auto-activate-base: false + channels: conda-forge + channel-priority: strict + miniforge-variant: Mambaforge + python-version: ${{ matrix.python-version }} + + - name: Install qtconsole dependencies + shell: bash -l {0} + run: | + cd ${GITHUB_WORKSPACE}/.. + git clone https://github.com/jupyter/qtconsole.git + cd qtconsole + pip install -e ".[test]" + pip install pyqt5 + + - name: Install Jupyter-Client changes + shell: bash -l {0} + run: pip install -e . + + - name: Test qtconsole + shell: bash -l {0} + run: | + cd ${GITHUB_WORKSPACE}/../qtconsole + xvfb-run --auto-servernum pytest -x -vv -s --full-trace qtconsole