Process health checks in single db session #279
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: Ruff | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install ruff | |
run: pip install ruff | |
- name: Get changed Python files | |
id: changed-py-files | |
uses: tj-actions/changed-files@v42 | |
with: | |
files: | | |
*.py | |
**/*.py | |
- name: Run ruff | |
if: steps.changed-py-files.outputs.any_changed == 'true' | |
run: ruff check ${{ steps.changed-py-files.outputs.all_changed_files }} --force-exclude |