Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test downstream projects #635

Merged
merged 14 commits into from
Aug 23, 2021
Merged
44 changes: 44 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test downstream projects

on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
pip install --upgrade pip
pip install pytest pytest-asyncio pytest-tornado
pip install nbclient[test]
pip install --pre -U --upgrade-strategy=only-if-needed nbclient
pip install ipyparallel[test]
pip install --pre -U --upgrade-strategy=only-if-needed ipyparallel
pip install jupyter_client[test]
pip install --pre -U --upgrade-strategy=only-if-needed jupyter_client
pip install . --force-reinstall
pip freeze
python -c 'import ipykernel; print("ipykernel", ipykernel.__version__)'

- name: Test nbclient
if: ${{ always() }}
run: IPYKERNEL_CELL_NAME="<IPY-INPUT>" pytest --pyargs nbclient
- name: Test ipyparallel
if: ${{ always() }}
run: pytest --pyargs ipyparallel
- name: Test jupyter_client
if: ${{ always() }}
run: pytest --pyargs jupyter_client