update readme #76
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: Execute notebooks | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
# cache: 'pip' # This cache is redundant with restore-virtualenv | |
- uses: syphar/restore-virtualenv@v1 | |
id: cache-virtualenv | |
with: | |
requirement_files: requirements.txt | |
- run: pip install -r requirements.txt | |
- name: Cache Lake data | |
id: cache-lake-data | |
uses: actions/cache@v3 | |
with: | |
path: .lake_cache | |
key: cache-lake-data | |
- name: Notebook changed | |
id: changed-files | |
uses: tj-actions/changed-files@v34 | |
with: | |
files: | | |
*.ipynb | |
- name: Run all notebooks | |
run: 'pytest --nbmake *.ipynb' | |
if: steps.changed-files.outputs.any_changed == 'true' |