diff --git a/.github/workflows/translated-tutorials.yml b/.github/workflows/translated-tutorials.yml index 7d0166e1f26..286b42b4373 100644 --- a/.github/workflows/translated-tutorials.yml +++ b/.github/workflows/translated-tutorials.yml @@ -1,4 +1,4 @@ -name: Tutorials +name: Tutorials-Translations on: push: @@ -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: @@ -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