Skip to content

using on_completion to run a downstream deployment #567

using on_completion to run a downstream deployment

using on_completion to run a downstream deployment #567

Workflow file for this run

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@v3
with:
fetch-depth: 0
- name: 🔍 Finding Changed Python Files 📝
id: changed-python-files
uses: tj-actions/changed-files@v37
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