Fix and improve experience when using Jinja to iterate over objects DATANG-3679 #46
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: PR checks | |
on: | |
pull_request: | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Setup environment | |
id: setup-environment | |
run: | | |
pip install poetry==1.4.2 | |
poetry install --no-root | |
- name: Black | |
if: (!cancelled()) && steps.setup-environment.outcome == 'success' # Run even if other checks fail | |
run: | | |
poetry run black --check . | |
- name: Isort | |
if: (!cancelled()) && steps.setup-environment.outcome == 'success' # Run even if other checks fail | |
run: | | |
poetry run isort --check . |