Files
gears/.github/workflows/pylint.yml
Lorenz Lechner be58b5856f tests: pytest, visual tests (projekt_001), CI (pylint+visual, update-references)
- Switch from unittest to pytest (test_gears.py, xfail for OCC helical extrusion)
- Add visual regression tests (freecad.visual_tests): test_visual_projects.py, projekt_001
- Pixi: test/test-visual/test-visual-xvfb/create-references/clean-test, create-references-xvfb
- GitHub: Pylint workflow on push, pull_request, workflow_dispatch; visual tests on Linux (xvfb)
- GitHub: Update reference images workflow (workflow_dispatch)
- setup-pixi v0.9.4, pixi v0.44.0, checkout v4
- .gitignore: artifacts/, .pytest_exitstatus

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 21:02:35 +01:00

29 lines
669 B
YAML

name: Pylint
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macOs-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.44.0
cache: false
- run: pixi run lint
- run: pixi run test
- name: Install xvfb (Linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y xvfb xauth
- name: Visual tests (Linux)
if: matrix.os == 'ubuntu-latest'
run: pixi run test-visual-xvfb