Merge pull request #1422 from sul-dlss/t1417-refactor-dag_run #1988
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 . |