ci: Skipping non related python checks (#18658)

This commit is contained in:
shortstacked
2025-08-22 10:52:03 +01:00
committed by GitHub
parent 4d49b97fc5
commit 67e75c389d
3 changed files with 17 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ on:
- '!.vscode/**'
- '!docker/**'
- '!packages/@n8n/benchmark/**'
- '!packages/@n8n/task-runner-python/**'
- '!**/*.md'
excluded_source_branch_patterns:
description: 'Newline-separated list of glob patterns for source branches to EXCLUDE.'

View File

@@ -5,8 +5,6 @@ on:
branches:
- '**'
- '!release/*'
paths-ignore:
- packages/@n8n/task-runner-python/**
jobs:
install-and-build:
@@ -16,13 +14,14 @@ jobs:
NODE_OPTIONS: '--max-old-space-size=3072'
outputs:
frontend_changed: ${{ steps.paths-filter.outputs.frontend == 'true' }}
non_python_changed: ${{ steps.paths-filter.outputs.non-python == 'true' }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Check for frontend changes
uses: dorny/paths-filter@v3
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: paths-filter
with:
filters: |
@@ -33,13 +32,19 @@ jobs:
- packages/@n8n/codemirror-lang/**
- .bundlemonrc.json
- .github/workflows/ci-pull-requests.yml
non-python:
- '**'
- '!packages/@n8n/task-runner-python/**'
- name: Setup and Build
if: steps.paths-filter.outputs.non-python == 'true'
uses: n8n-io/n8n/.github/actions/setup-nodejs-blacksmith@f5fbbbe0a28a886451c886cac6b49192a39b0eea # v1.104.1
- name: Run format check
if: steps.paths-filter.outputs.non-python == 'true'
run: pnpm format:check
- name: Run typecheck
if: steps.paths-filter.outputs.non-python == 'true'
run: pnpm typecheck
- name: Upload Frontend Build Artifacts
@@ -79,10 +84,11 @@ jobs:
path: packages/frontend/editor-ui/dist/
- name: BundleMon
uses: lironer/bundlemon-action@v1.2.0
uses: lironer/bundlemon-action@cadbdd58f86faf1900725ef69d455444124b3748 # v1.3.0
unit-test:
name: Unit tests
if: needs.install-and-build.outputs.non_python_changed == 'true'
uses: ./.github/workflows/units-tests-reusable.yml
needs: install-and-build
with:
@@ -93,6 +99,7 @@ jobs:
lint:
name: Lint
if: needs.install-and-build.outputs.non_python_changed == 'true'
uses: ./.github/workflows/linting-reusable.yml
needs: install-and-build
with: