Again adjusting version so that github actions is compatible #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.11.9' | |
architecture: 'x64' | |
- name: Install the library | |
run: | | |
pip install nbdev jupyter | |
pip install -e . | |
- name: Read all notebooks | |
run: | | |
nbdev_read_nbs | |
- name: Check if all notebooks are cleaned | |
run: | | |
- name: Check if there is no diff library/notebooks | |
run: | | |
if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi | |
- name: Run tests | |
run: | | |
nbdev_test_nbs |