Skip to content

Commit

Permalink
Update reproducibility-checker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihengSun committed Feb 5, 2024
1 parent b98feab commit d504fce
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/reproducibility-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,20 @@ jobs:

- uses: ./.github/actions/setupconda

- name: Install packages for the checker script
run: pip install nbformat
- name: Install Dependencies
run: |
pip install nbqa flake8
- name: Run Python Script
run: python ./.github/workflows/reproducibility_checker.py
- name: Lint Jupyter Notebooks
run: |
find ./book/chapters/ -type f -name '*.ipynb' -exec nbqa flake8 {} +
# Fail the workflow if linting errors are found
continue-on-error: true

- name: Check for Errors
run: |
if [ -n "$(grep -r "^[^:]*: [1-9]" ./*.ipynb)" ]; then
echo "Linting errors found. Please check the logs."
exit 1
fi

0 comments on commit d504fce

Please sign in to comment.