Log errors but do not raise SystemExit for encumbrances script #1998
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
# github action workflow to run black formatter check and linting checks for our python code | |
name: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Airflow + dependencies | |
run: | | |
pip install -r requirements.txt | |
poetry install | |
- name: Lint with flake8 | |
run: poetry run flake8 | |
- name: Format with black | |
run: poetry run black --check --diff . |