Skip to content

Most recent scikit-learn results in several failed unit tests #2

Most recent scikit-learn results in several failed unit tests

Most recent scikit-learn results in several failed unit tests #2

Workflow file for this run

name: Format Python code with Black
on: [pull_request]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Set the Python version you want to use
- name: Install Black
run: pip install black
- name: Run Black Check
run: black --check .
- name: Run Black Format
if: failure()
run: |
black . --exclude '/(\.ipynb)/' # Exclude .ipynb files in formatting
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "Apply Black Formatting" --allow-empty
git push origin HEAD:${{ github.head_ref }} # Push to the correct branch