diff --git a/.github/workflows/notebook-test.yml b/.github/workflows/notebook-test.yml index 1d724005c37..48ebd25fc1f 100644 --- a/.github/workflows/notebook-test.yml +++ b/.github/workflows/notebook-test.yml @@ -74,18 +74,13 @@ jobs: key: ${{ hashFiles('scripts/nb-tester/requirements.txt') }} - name: Run tox on changed files - if: github.event_name == 'pull_request' shell: python run: | import subprocess files = """${{ steps.all-changed-files.outputs.all_changed_files }}""" - args = ["tox", "--"] + files.split("\n") + ["--write"] + args = ["tox", "--"] + files.strip().split() + ["--write"] subprocess.run(args, check=True) - - name: Run tox on all files - if: github.event_name == 'workflow_dispatch' - run: tox -- --write - - name: Upload executed notebooks uses: actions/upload-artifact@v4 with: