Terminate the celery nodes #144
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: Lint | |
on: | |
pull_request: | |
branches: | |
- master | |
permissions: | |
checks: write | |
contents: write | |
jobs: | |
lint-python: | |
name: Lint Python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check changed py files | |
id: changed-files | |
uses: tj-actions/changed-files@v24 | |
with: | |
files: | | |
**/*.py | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
if: ${{ steps.changed-files.outputs.all_changed_files }} | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
if: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: pip install flake8 | |
- name: Run flake8 linter | |
if: ${{ steps.changed-files.outputs.all_changed_files }} | |
uses: wearerequired/lint-action@v2 | |
with: | |
flake8: true | |
flake8_auto_fix: false | |
flake8_args: ${{ steps.changed-files.outputs.all_changed_files }} | |
continue_on_error: false | |