Skip to content

Commit

Permalink
ci: extract git diff on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jun 15, 2021
1 parent 3748e85 commit a25b45c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
python-version: [3.7]
steps:
- uses: actions/checkout@master
- name: Check modified notebooks
id: git-diff
run:
echo "::set-output name=dependency-changes::$(git diff --name-only
origin/$GITHUB_BASE_REF -- docs | grep ipynb)"
- name: Show modified notebooks
run: echo ${{ steps.git-diff.outputs.dependency-changes }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
Expand All @@ -30,8 +37,6 @@ jobs:
pip install .[test]
sudo apt-get -y install graphviz
- name: Run notebooks with pytest (diff only)
run:
pytest $(git diff --name-only origin/$GITHUB_BASE_REF -- docs | grep
ipynb)
run: pytest ${{ steps.git-diff.outputs.dependency-changes }}
- name: Run demo notebooks
run: pytest demo

0 comments on commit a25b45c

Please sign in to comment.