This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
Bump nokogiri from 1.10.8 to 1.15.4 in /docs #144
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: pull_request | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
architecture: 'x64' | |
- name: Install Poetry for Python | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: '1.5.1' | |
- name: Install the library | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
poetry install | |
poetry env use python3.7 | |
poetry env info | |
- name: Read all notebooks | |
run: | | |
poetry run nbdev_read_nbs | |
- name: Check if all notebooks are cleaned | |
run: | | |
echo "Check we are starting with clean git checkout" | |
if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi | |
echo "Trying to strip out notebooks" | |
poetry run nbdev_clean_nbs | |
echo "Check that strip out was unnecessary" | |
git status -s # display the status to see which nbs need cleaning up | |
if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_git_hooks"; false; fi | |
- name: Check if there is no diff library/notebooks | |
run: | | |
if [ -n "$(poetry run nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi | |
- name: Run tests | |
run: | | |
poetry run nbdev_test_nbs |