forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.11 KB
/
ci-python.yml
File metadata and controls
49 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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:
lint:
name: Lint
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
unit-test:
name: Unit tests
runs-on: ubuntu-latest
needs: lint
steps:
- name: Python unit tests
run: echo "Skipping unit tests for Python-only changes until we have Python unit tests"