ci: update fix workflow to also fix isort
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 27s
Fix Black + iSort Formatting / fix-format (push) Successful in 46s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1578h56m27s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1578h56m27s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1578h56m28s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1578h56m29s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1578h56m28s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1579h28m2s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 27s
Fix Black + iSort Formatting / fix-format (push) Successful in 46s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1578h56m27s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1578h56m27s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1578h56m28s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1578h56m29s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1578h56m28s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1579h28m2s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Fix Black Formatting
|
||||
name: Fix Black + iSort Formatting
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -6,7 +6,7 @@ on:
|
||||
- fix/black-format-render-adapter
|
||||
|
||||
jobs:
|
||||
fix-black:
|
||||
fix-format:
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -15,16 +15,24 @@ jobs:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Install black and fix formatting
|
||||
- name: Install and fix formatting
|
||||
run: |
|
||||
pip install black -q
|
||||
pip install black isort -q
|
||||
|
||||
# Fix isort issues in the specific files
|
||||
isort apps/worker/video_processing/render_adapter.py
|
||||
isort apps/worker/video_processing/__init__.py
|
||||
isort tests/unit/test_render_adapter.py
|
||||
|
||||
# Also run black to be safe
|
||||
black tests/unit/test_render_adapter.py
|
||||
|
||||
git config user.name "CI Bot"
|
||||
git config user.email "ci@xiaoxia.local"
|
||||
git add tests/unit/test_render_adapter.py
|
||||
git add -A
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes needed"
|
||||
else
|
||||
git commit -m "style: fix black formatting for test_render_adapter.py"
|
||||
git commit -m "style: fix isort imports + black formatting"
|
||||
git push origin fix/black-format-render-adapter
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user