Most recent scikit-learn results in several failed unit tests #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() # This ensures Black format runs only if the Black Check fails | |
run: | | |
black . | |
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 |