python-code-format.yml 544 B

123456789101112131415161718192021222324
  1. name: code format
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. build:
  7. runs-on: ubuntu-18.04
  8. strategy:
  9. matrix:
  10. python-version:
  11. - 3.8
  12. steps:
  13. - uses: actions/checkout@v1
  14. - uses: actions/setup-python@v1
  15. with:
  16. python-version: ${{ matrix.python-version }}
  17. - run: pip install --upgrade pipenv>=2018.10.9
  18. - run: pipenv install --python "$PYTHON_VERSION" --deploy --dev
  19. env:
  20. PYTHON_VERSION: ${{ matrix.python-version }}
  21. - run: pipenv graph
  22. - run: pipenv run black --check .