mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
ci: Add CI for Python projects (#18399)
This commit is contained in:
2
.github/workflows/ci-master.yml
vendored
2
.github/workflows/ci-master.yml
vendored
@@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- packages/@n8n/task-runner-python/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
|
|||||||
2
.github/workflows/ci-pull-requests.yml
vendored
2
.github/workflows/ci-pull-requests.yml
vendored
@@ -5,6 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
- '!release/*'
|
- '!release/*'
|
||||||
|
paths-ignore:
|
||||||
|
- packages/@n8n/task-runner-python/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-and-build:
|
install-and-build:
|
||||||
|
|||||||
40
.github/workflows/ci-python.yml
vendored
Normal file
40
.github/workflows/ci-python.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Python CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/@n8n/task-runner-python/**
|
||||||
|
- .github/workflows/ci-python.yml
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- packages/@n8n/task-runner-python/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
python-ci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: packages/@n8n/task-runner-python
|
||||||
|
steps:
|
||||||
|
- name: Check out project
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # 6.5.0
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
|
||||||
|
- name: Install Python
|
||||||
|
run: uv python install 3.13
|
||||||
|
|
||||||
|
- name: Install project dependencies
|
||||||
|
run: uv sync
|
||||||
|
|
||||||
|
- name: Format check
|
||||||
|
run: uv run ruff format --check
|
||||||
|
|
||||||
|
- name: Typecheck
|
||||||
|
run: uv run ty check src/
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: uv run ruff check
|
||||||
Reference in New Issue
Block a user