fix(form deployment): fix failing to deploy after initial failure #936
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: Python linter (Darker) | |
on: [pull_request] | |
jobs: | |
darker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install pip dependencies | |
run: python -m pip install darker[isort] flake8 flake8-quotes isort --quiet | |
# use `--ignore=F821` to avoid raising false positive error in typing | |
# annotations with string, e.g. def my_method(my_model: 'ModelName') | |
# darker still exit with code 1 even with no errors on changes | |
- name: Run Darker with base commit | |
run: | | |
output=$(darker --check --isort -L "flake8 --max-line-length=88 --extend-ignore=F821" kpi kobo hub -r ${{ github.event.pull_request.base.sha }}) | |
[[ -n "$output" ]] && echo "$output" && exit 1 || exit 0 | |
shell: /usr/bin/bash {0} |