photo policy #1335
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 | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
pull_request: | |
branches: | |
- master | |
- staging | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
cache: 'pipenv' | |
- name: Run black | |
uses: psf/black@stable | |
- name: Set up pipenv | |
run: python -m pip install --upgrade pipenv wheel | |
- name: Install requirements | |
run: pipenv install --deploy --dev | |
- name: Run isort | |
run: pipenv run isort **/*.py -c |