1
0

python-code-format.yml 498 B

1234567891011121314151617181920
  1. name: code format
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. build:
  7. runs-on: ubuntu-18.04
  8. steps:
  9. - uses: actions/checkout@v1
  10. - uses: actions/setup-python@v1
  11. with:
  12. # black requires python>=3.6
  13. # https://github.com/psf/black/commit/e74117f172e29e8a980e2c9de929ad50d3769150#diff-2eeaed663bd0d25b7e608891384b7298R51
  14. python-version: 3.8
  15. - run: python --version
  16. - run: pip install --upgrade black==19.10b0
  17. - run: pip freeze
  18. - run: black --check .