mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: 'Test: Evals Python'
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- packages/@n8n/ai-workflow-builder.ee/evaluations/programmatic/python/**
|
|
- .github/workflows/test-evals-python.yml
|
|
push:
|
|
paths:
|
|
- packages/@n8n/ai-workflow-builder.ee/evaluations/programmatic/python/**
|
|
|
|
jobs:
|
|
workflow-comparison:
|
|
name: Workflow Comparison Python
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: packages/@n8n/ai-workflow-builder.ee/evaluations/programmatic/python
|
|
steps:
|
|
- name: Check out project
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@6ee6290f1cbc4156c0bdd66691b2c144ef8df19a # v7.4.0
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Install just
|
|
uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3.0.0
|
|
|
|
- name: Install Python
|
|
run: uv python install 3.11
|
|
|
|
- name: Install project dependencies
|
|
run: just sync-all
|
|
|
|
- name: Format check
|
|
run: just format-check
|
|
|
|
- name: Typecheck
|
|
run: just typecheck
|
|
|
|
- name: Lint
|
|
run: just lint
|
|
|
|
- name: Python unit tests
|
|
run: uv run pytest --cov=src --cov-report=xml --cov-report=term-missing
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: packages/@n8n/ai-workflow-builder.ee/evaluations/programmatic/python/coverage.xml
|
|
flags: tests
|
|
name: workflow-comparison-python
|
|
fail_ci_if_error: false
|