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 a9cc4f5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
python-version: [3.7]
steps:
- uses: actions/checkout@master
- run: git fetch origin
- 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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
Expand All @@ -30,8 +36,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 a9cc4f5

Please sign in to comment.