Skip to content

Update the pypa/gh-action-pypi-publish action version #29

Update the pypa/gh-action-pypi-publish action version

Update the pypa/gh-action-pypi-publish action version #29

Workflow file for this run

name: Run tests
on:
pull_request:
jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install python dependencies
run: |
pip install maturin
pip install pytest nbformat nbconvert ipykernel
# Build pyo3 bindings manually, then install with
# pip; can't pass args directly through to pip.
# Also, maturin can't set the output wheel name, so
# we need to find it directly.
- name: Install python bindings for nbstripout-fast
run: |
maturin build -b pyo3 --features extension-module --out wheel
pip install $(find ./wheel -name '*.whl' | head -n 1)
- name: Run tests
run: |
pytest ./