Skip to content

Commit

Permalink
Neater fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Jan 10, 2024
1 parent f1c3a46 commit 6755a1a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6755a1a

Please sign in to comment.