CI: no workflow runs tests or lint — add a quality gate (pytest, ruff, pylint, coverage, web build)

Đang mở
#48 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, node.js, python
Lĩnh vực
ci-cd

Hướng nghiên cứu

Read AGENTS.md 'CI/CD Recommandé' and build-windows.yml for trigger patterns. Create a new workflow file (e.g. .github/workflows/ci.yml) with the matrix Python 3.11/3.13/3.14 and steps: ruff, pylint, pytest --cov, and a web job running npm ci/test/build. Done when CI runs on push/PR and the existing red test fails the 85% coverage gate.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

ci enhancement

The repo has exactly two workflows: build-windows.yml (a dry-run guard) and release.yml (packaging). Nothing on GitHub runs the tests, ruff, pylint, or the web build — even though AGENTS.md prescribes exactly that CI, pyproject enforces --cov-fail-under=85, and the suite currently has a red test (test_main_without_npm) that went unnoticed on main.

Proposal (mirrors AGENTS.md "CI/CD Recommandé", modernized)

  • Trigger on push to main + PRs touching src/** or tests/** (share the trigger conditions of build-windows.yml).
  • uv sync + matrix Python 3.11 / 3.13 / 3.14 (classifiers claim 3.11–3.14; only 3.13 is ever exercised — 3.14 support is entirely untested).
  • Steps: ruff format --check ., ruff check ., pylint src/profiles --fail-under=8.0, pytest --cov=src/profiles --cov-report=xml (the 85% gate is already in addopts), optionally deptry src/.
  • Web job (paths src/profiles/web/**): npm ci && npm test && npm run build (tsc runs as part of build) on Node 20.
  • Consider a pre-commit run --all-files job as a cheap catch-all.
Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
4 giờ 46 phút
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của falbany/ProFiles

Tất cả issue của falbany/ProFiles

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.