Skip to content

Merge pull request #226 from garrison/direct-ipykernel-dependency #202

Merge pull request #226 from garrison/direct-ipykernel-dependency

Merge pull request #226 from garrison/direct-ipykernel-dependency #202

Workflow file for this run

name: continuous-integration
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
python-version: [3.7, 3.8]
os: [ubuntu-latest]
include:
- os: windows-latest
python-version: 3.7
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m bash_kernel.install # For testing a non-standard kernel
pip install .
- name: Run tests
run: pytest
publish:
name: Publish to PyPi
needs: [tests]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}