Skip to content

PR: Improve the way we depend on IPython and IPykernel per Python version #901

PR: Improve the way we depend on IPython and IPykernel per Python version

PR: Improve the way we depend on IPython and IPykernel per Python version #901

Workflow file for this run

name: Linux pip tests
on:
push:
branches:
- master
- 2.*
pull_request:
branches:
- master
- 2.*
concurrency:
group: linux-pip-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
name: Py${{ matrix.PYTHON_VERSION }}
runs-on: ubuntu-latest
env:
CI: True
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
RUNNER_OS: 'ubuntu'
USE_CONDA: 'false'
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['2.7', '3.8', '3.9', '3.10']
timeout-minutes: 20
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install System Packages
run: |
sudo apt-get update
sudo apt-get install libegl1-mesa
- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
auto-update-conda: false
auto-activate-base: false
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package and dependencies
shell: bash -l {0}
run: |
pip install -e .[test]
# Zict 2.1.0 is not compatible with Python 3
pip install zict==2.0.0
- name: Show environment information
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
run: |
xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -x -vv || \
xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -x -vv || \
xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -x -vv
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
verbose: true