Adds generic flow to declarative orchestrator #575
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 Checks 🧹 | |
on: | |
pull_request: | |
paths: | |
- '**/*.py' | |
jobs: | |
python-checks: | |
name: 💻 Python Checks 🧹 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checking Out Code 📂 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🔍 Finding Changed Python Files 📝 | |
id: changed-python-files | |
uses: tj-actions/changed-files@v40 | |
with: | |
files: | | |
**/*.py | |
- name: 🕵️♀️ Output changed Python files | |
id: check-python-changes | |
run: echo "changed=$(test -n '${{ steps.changed-python-files.outputs.all_changed_files }}')" >> $GITHUB_OUTPUT | |
- name: 🐍 Setting Up Python Environment 💻 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install pre-commit | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
- name: ⚫️ Run black + ruff 🐕 | |
run: | | |
pre-commit run --show-diff-on-failure --color=always black && pre-commit run --show-diff-on-failure --color=always ruff |