Merge pull request #166 from ufal/add-annotation-badges #101
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: Black | |
on: | |
push: | |
branches: [ main, release-1.0.0] | |
pull_request: | |
branches: [ main, release-1.0.0] | |
jobs: | |
check-black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install Black 24.10.0 - check setup.py if version matches | |
run: | | |
python -m pip install --upgrade pip | |
pip install black==24.10.0 | |
- name: Run Black | |
run: | | |
black --check --target-version py39 . |