Skip to content

Commit

Permalink
Use v2 and fetch all in checkout (#3085)
Browse files Browse the repository at this point in the history
  • Loading branch information
nph4rd authored Feb 22, 2020
1 parent b96a9b0 commit 8ffef89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/translated-tutorials.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tutorials
name: Tutorials-Translations

on:
push:
Expand All @@ -21,7 +21,9 @@ jobs:
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- run: |
git fetch --no-tags --prune --depth=0 origin +refs/heads/*:refs/remotes/origin/*
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
Expand All @@ -39,5 +41,5 @@ jobs:
python setup.py install
- name: Test with pytest
run: |
git diff --name-only ${{ github.event.before }} ${{ github.sha }} examples/tutorials/translations/ > ./test/notebooks/git-diff.txt
git diff --name-only origin/master HEAD examples/tutorials/translations/ > ./test/notebooks/git-diff.txt
pytest test/notebooks/test_notebooks.py::test_notebooks_basic_translations_diff

0 comments on commit 8ffef89

Please sign in to comment.